[EMAIL PROTECTED] wrote: > Here's a minimal test case. Maybe it's specific to using schemas...
Verified. You can verify by using the sax.Counter to see that the whitespace after the "this" is stripped -- but only when Schema validation is turned on. # No Validation D:\download>java -Djava.ext.dirs=. sax.Writer testAmp.xml <?xml version="1.0" encoding="UTF-8"?> <testroot xsi:schemaLocation="http://xml.classwell.com/clg test.xsd"> <test>This & that</test> </testroot> # XML Schema Validation D:\download>java -Djava.ext.dirs=. sax.Writer testAmp.xml <?xml version="1.0" encoding="UTF-8"?> <testroot xsi:schemaLocation="http://xml.classwell.com/clg test.xsd"> <test>This& that</test> </testroot> > (See attached file: test.xsd)(See attached file: testAmp.xml) Could someone please fix this in the XML Schema validator? -- Andy Clark * [EMAIL PROTECTED]
<?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://xml.classwell.com/clg" xmlns:clg="http://xml.classwell.com/clg" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="testroot"> <xs:complexType> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:element name="test" type="xs:token"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
<?xml version="1.0" encoding="UTF-8"?> <testroot xmlns="http://xml.classwell.com/clg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xml.classwell.com/clg test.xsd"> <test>This & that</test> </testroot>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
