you're not doing anything wrong xerces worked correctly with DTD the refactor to xml-schema never seemed to worked correctly you can try asking the indians that worked for are currently working at IBM..
or punt to the original xerces code from Sun Microsystems which is what I did i have a xerces refactor in the works that implements the original jaxp and dom classes from the package com.sun.org.apache.xerces.internal %JRE_HOME%\lib\com\sun\org\apache\xerces\internal 03/11/2011 12:35 PM <DIR> . 03/11/2011 12:35 PM <DIR> .. 03/11/2011 12:35 PM <DIR> dom 03/11/2011 12:35 PM <DIR> impl 03/11/2011 12:35 PM <DIR> jaxp 03/11/2011 12:35 PM <DIR> parsers 03/11/2011 12:35 PM <DIR> util 03/11/2011 12:35 PM <DIR> xinclude 03/11/2011 12:35 PM <DIR> xni 03/11/2011 12:35 PM <DIR> xpointer 03/11/2011 12:35 PM <DIR> xs if the indians have anything useful to say please pass it along to the list my refactor should be ready by 1 may Martin ______________________________________________ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > To: [email protected] > From: [email protected] > Subject: woden and xerces Xerces2 Java 2.11.0 (XML Schema 1.1) (Beta) > compatibility question > Date: Wed, 27 Apr 2011 22:53:54 +0000 > > I am using woden to parse wsdl files and Xerces2 Java 2.11.0 (XML Schema 1.1) > (Beta) to parse xsd documents. > WSDLFactory factory = WSDLFactory.newInstance(); > WSDLReader reader = factory.newWSDLReader(); > reader.setFeature(WSDLReader.FEATURE_VALIDATION, true); > String wsdlurl = "E://apps//metacenter_home//xsd//greath.wsdl"; > Description descComp = reader.readWSDL(wsdlurl); > > When I do so I get the following exception while execution the above code. > > java.lang.NullPointerException > at java.util.StringTokenizer.<init>(StringTokenizer.java:182) > at java.util.StringTokenizer.<init>(StringTokenizer.java:204) > at org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl.getActualValue(Unknown > Source) > at org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl.validate(Unknown > Source) > at > org.apache.xerces.impl.xs.util.XSTypeHelper.isValueValidForASimpleType > (Unknown Source) > at > org.apache.xerces.impl.xs.util.XSTypeHelper.isAtomicValueValidForAnUnion > (Unknown Source) > at org.apache.xerces.impl.xs.XMLSchemaValidator.addDefaultAttributes > (Unknown Source) > at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement > (Unknown Source) > at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown > Source) > at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement > (Unknown Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher. > dispatch(Unknown Source) > at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument > (Unknown Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) > at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) > at org.apache.woden.internal.DOMWSDLReader.getDocument > (DOMWSDLReader.java:796) > at org.apache.woden.internal.DOMWSDLReader.readWSDL > (DOMWSDLReader.java:296) > at org.apache.woden.internal.DOMWSDLReader.readWSDL > (DOMWSDLReader.java:157) > Link: > Xerces2 Java 2.11.0 (XML Schema 1.1) (Beta) - zip > > Could you tell me what I am doing wrong? > > Thanks > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >
