How to use libxml2 library in particle code

Hi,
My project needs code to parse the xml file and consume it. Libxml2 is open sourced C++ code which i can use. i know how to use it in normal windows/ unix application. I dont know how to consume in IOT firmware code.

need help on this.

thanks
Venkat.