Re: xml esc chars
- From: Havoc Pennington <hp redhat com>
- To: Naba Kumar <kh_naba yahoo com>
- Cc: gnome-devel-list gnome org
- Subject: Re: xml esc chars
- Date: 08 Jul 2001 14:56:54 -0400
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
entities.)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]