http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2464 *** shadow/2464 Thu Jul 5 13:02:12 2001 --- shadow/2464.tmp.6444 Thu Jul 5 13:02:12 2001 *************** *** 0 **** --- 1,54 ---- + +============================================================================+ + | Unable to declare text-only element with attributes | + +----------------------------------------------------------------------------+ + | Bug #: 2464 Product: Xerces-J | + | Status: NEW Version: 1.4.1 | + | Resolution: Platform: Other | + | Severity: Major OS/Version: All | + | Priority: Other Component: Schema-Structures | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + I am including instance document, schema, and output showing a null pointer + exception. This validates with XML Spy. Please let me know if you need any + more information. + + Thanks. - Len + + cat e3.xml + <?xml version="1.0" encoding="UTF-8"?> + <attribute xmlns="http://www.letter.org" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.letter.org f.xsd" + name="preferred"> Boolean.TRUE + </attribute> + ../tmp/DDbEv2: cat f.xsd + <?xml version='1.0' encoding="UTF-8"?> + <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://www.letter.org" + xmlns="http://www.letter.org" + elementFormDefault="qualified"> + <xsd:element name="attribute"> + <xsd:complexType mixed="true"> + <xsd:attribute name="name" type="xsd:string"/> + </xsd:complexType> + </xsd:element> + + </xsd:schema> + ../tmp/DDbEv2: + /usr/local/ibm/IBMJava2-13/bin/java -classpath /home/berman/ibm/xml/xerces/Java/ + ar sax.SAXWriter -v e3.xml + e3.xml: + java.lang.NullPointerException + at java.lang.Throwable.<init>(Throwable.java:84) + at java.lang.Exception.<init>(Exception.java:35) + at org.xml.sax.SAXException.<init>(SAXException.java:61) + at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094) + at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1122) + at sax.SAXWriter.print(SAXWriter.java:163) + at sax.SAXWriter.main(SAXWriter.java:456) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
