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 bu...@apache.org on 2004/03/26 20:12:05 UTC
DO NOT REPLY [Bug 27991] New: -
Parser fails with escape characters in attribute value
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27991>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=27991
Parser fails with escape characters in attribute value
Summary: Parser fails with escape characters in attribute value
Product: Xerces-C++
Version: 1.7.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: DOM
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: wwilson@iss.net
Xerces-C++ version number : 1.7.0
Platform : PC
Operating system and version number : Win XP SP1 (Intel 32)
Compiler and version number : VC6 SP5
------------------------------------------------------------
The XML document (or excerpt) that failed :
Our code created an in-memory XML document using this escaped
string in several places:
string sEscaped = "\b\b\a\f\n\r\t\v\\\'\"\?Testing\x01\x02\x0A\x0D\xFF\xB";
The complete XML (including the result of the escaped string) is here:
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<iss xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:schemaLocation='http://www.iss.net ./schemas/Iss1_0_0.xsd
http://www.iss.net/cml ./schemas/cml/cml2_4_0.xsd'
xmlns='http://www.iss.net' schema-version='1.0.0'>
<cml xmlns='http://www.iss.net/cml' schema-version='2.4.0'>
<message-envelope broadcast='false' message-id='c648d597-7d26-40de-
8575-179f7ac3768f'>
<source xmlns='http://www.iss.net/cml' name='AgentNameHere'
namespace='
\'"?Testing
' agent-id='1B6476D2-9B84-41ba-B245-73D5777F8F83'/>
<destination xmlns='http://www.iss.net/cml'
name='DesktopController' namespace='http://www.iss.net/cml/DesktopController'/>
<message-body>
<request>
<agent-startup-announcement xmlns='http://www.iss.net/cml'
request-id='074f5cc4-5241-406b-a4d4-2114f0c8f167' schema-version='2.4.0'
name='AgentNameHere' agent-id='1B6476D2-9B84-41ba-B245-73D5777F8F83'
namespace='
\'"?Testing
' version='7.0' use-local-settings='true'>
<host-info xmlns='http://www.iss.net/cml' os=''
version=''/>
</agent-startup-announcement>
</request>
</message-body>
</message-envelope>
</cml>
</iss>
The C++ application code that failed :
parser.NonValidatingParse(input);
Whether you built the Xerces-C++ library yourself or used the binary
distribution = Built our own
What happened = Exception during the NonValidatingParse. Note: XmlSpy and
Internet Explorer seem to load the XML just fine.
Thanks,
Wes Wilson
wwilson@iss.net
404-236-2795
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org