[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Proposed requirements on solutions that convertXML-illegal
I'm not sure I see your problem. If NUL is embeded in a string and your element is defined to contain string content then it works as expected. For example nul.xsd is: <xs:schema xmlns:xs="http://www.w3.org/ <xs:complexType name="test"> <xs:sequence> <xs:element name="key" type="xs:string"></xs:element> <xs:element name="message" type="xs:string"></xs:element> </xs:sequence> </xs:complexType> <xs:element name="testdoc" type="test"></xs:element> </xs:schema> and nul.xml is: <?xml version="1.0" encoding="UTF-8"?> <testdoc xmlns:xsi="http://www.w3.org/ xsi:noNamespaceSchemaLocation= <key>\u0000</key> <message>Hello \u000C World</message> </testdoc> Then the nul.xml is perfectly valid. Below is even a screen shot I took from within Oxygen XML Editor using Xerces as the parser and SaxonEE gives the same result. On Tue, Apr 25, 2017 at 3:49 PM, Costello, Roger L. <costello@mitre.org> wrote:
Attachment:
nul.png
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|