[Expat-bugs] [ expat-Bugs-898906 ] Expat fails to correctly parse content data

SourceForge.net noreply at sourceforge.net
Tue Feb 17 12:33:00 EST 2004


Bugs item #898906, was opened at 2004-02-17 09:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=898906&group_id=10127

Category: www.libexpat.org
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Expat fails to correctly parse content data

Initial Comment:
In the following XML file:
<?xml version="1.0" ?>
<document>
	<test1 name="if (x<y)" >
	if (x < y)
	</test1>
</document>

the < in the attribute is correctly returned as "<",
however, in the character block, it appears to be 
returned as a NULL.



I will try to look into it to see if I can figure out
where expat went wrong.


Here is the output from my simple test app using expat:

defaultHandler: '<?xml version="1.0" ?'
defaultHandler: ''
startElement 'document'
.characterData: ''
.characterData: ''
.startElement 'test1'
.Attribute: 'name' = 'if (x<y)'
..characterData: ''
..characterData: '      if (x'
..characterData: ''
..characterData: ' y'
..characterData: ''
..characterData: ''
.endElement 'test1'
.characterData: ''
endElement 'document'


Thanks,
Nicholas



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=898906&group_id=10127



More information about the Expat-bugs mailing list