Re: xml esc chars

Naba Kumar <kh_naba yahoo com> writes:
> I need the list of characters that need escaping in xml and their
> corrosponding codes. Is there a utility function that can encode a string
> by escaping these chars. I couldn't find one in gnome-xml.

I'm pretty sure libxml has one. Maybe xmlEncodeEntitiesReentrant()?

If you look at glib2 g_markup_escape_text() does this too, but I'm not
sure it works for full XML. (It only handles the built-in XML


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