[Expat-bugs] Bug parsing embedded xml?

Key88 SF key88sf at hotmail.com
Thu Feb 13 06:57:01 EST 2003


I'm wondering if the following is a bug. I am trying to parse an XML file 
that has, as the value for a tag, another XML string which is encoded via 
HTML-type >, etc.

When expat encounters this tag, it doesn't pass the entire html-encoded text 
as the value to my XML_SetCharacterDataHandler function. Instead, it passes 
every encoded '<' character, '>' character, and the text in between.  Is 
this a bug??

The xml I am trying to process looks like below:
(NOTE: Also attached as a zip file in case email programs try to re-encode 
it).

<invoke><UpdateMedia><pMediaXML>&lt;MuseMediaCollection 
xmlns="http://www.mediacode.com/muse.net/ClientService/MuseMediaUpdate" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;MuseMedia 
xmlns=""&gt;&lt;OldPath&gt;2/Aerosmith%20-%20Dream%20On.mp3&lt;/OldPath&gt;&lt;Creator 
xmlns="http://www.mediacode.com/muse.net/ClientService/MuseMediaUpdate"&gt;mycreator&lt;/Creator&gt;&lt;Title 
xmlns="http://www.mediacode.com/muse.net/ClientService/MuseMediaUpdate"&gt;My 
Title&lt;/Title&gt;&lt;Audio 
xmlns="http://www.mediacode.com/muse.net/ClientService/MuseMediaUpdate"&gt;&lt;TrackNumber&gt;999&lt;/TrackNumber&gt;&lt;Album&gt;My 
Album&lt;/Album&gt;&lt;Date&gt;2003-03-03&lt;/Date&gt;&lt;Comment&gt;This is 
my 
comment&lt;/Comment&gt;&lt;/Audio&gt;&lt;/MuseMedia&gt;&lt;/MuseMediaCollection&gt;</pMediaXML></UpdateMedia></invoke>


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcp.zip
Type: application/x-zip-compressed
Size: 437 bytes
Desc: not available
Url : http://mail.libexpat.org/pipermail/expat-bugs/attachments/20030213/23b5f567/pcp.bin


More information about the Expat-bugs mailing list