[xml] Making Sure Output is XML safe



HI Guys

I hope you can help me.
I'm currently using libxml to parse incomming xml, but simply using printf to generate my reply xml.

I have one variable that may contain characters that are not xml safe/friendly like '<' as an example.
Is there anyway that I can parse some text to a function and get a xml "safe/friendly" output that I can use
in my app.

Regards
Danie



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]