You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Steve Barge <sb...@fc.hp.com> on 2002/10/07 19:07:09 UTC

Problem parsing <

Hi,

I'm using version 1.7 of xerces-c++.  I'm having problems parsing the
following:

<smd:attr_li name="ancestor">
<smd:li>Contrib-Tools.PIMTOOL,r&lt;B.11.11,l=/</smd:li>
<smd:li>OS-Core.UX-CORE,r&lt;B.11.11.%,l=/</smd:li>
</smd:attr_li>

The "r&lt;B.11.11" should translate to "r<B.11.11".  I have derived a class
from the SAX DefaultHandler and in the ::characters method, the "&lt;" is
converted to '<' but for some reason it thinks that the '<' is then the
beginning of the end tag "</smd:li>" or it thinks it is a new list element
"<smd:li>".  So it converts the above to:

	<smd:attr_li name="ancestor">
		<smd:li>Contrib-Tools.PIMTOOL,r</smd:li>
  		<smd:li><B.11.11,l=/</smd:li>
		<smd:li>OS-Core.UX-CORE,r</smd:li>
  		<smd:li><B.11.11.%,l=/</smd:li>
	</smd:attr_li>

Does anybody know why this is happening?  Is this a bug in this version of
xerces-c++ or is this a problem whith the way the '<' is escaped in the XML?

Thanks in advance!

Steve Barge


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org