Hi Len,
I tried your xml/xsd files, got no error or exception.
There were some problems with mixed-empty complexTypes in 1.4.1, but I
think they have been fixed in CVS. If you grab the latest copy, it should
work.
As for the null pointer exception, I believe it's not a problem in Xerces.
(Throwable.java:84) is "fillInStackTrace();", which has nothing to do with
Xerces. I suspect that there are problems in your system like JVM,
installation, incompatibility, etc.
Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]
bugzilla@apach
e.org To: [EMAIL PROTECTED]
cc:
07/05/2001 Subject: [Bug 2464] New: - Unable to
declare text-only element with
04:02 PM attributes
Please respond
to
xerces-j-dev
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]