[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: RE: namespace in schema not in XML
From: "Radu Preotiuc-Pietro" <radup () bea ! com>
Date: 2005-02-25 21:47:34
Message-ID: 4B2B4C417991364996F035E1EE39E2E101A05F57 () uskiex01 ! amer ! bea ! com
[Download RAW message or body]
Check out XmlOptions.setLoadSubstituteNamespaces().
-----Original Message-----
From: Bernard Winkelmann [mailto:bernard.winkelmann@gmail.com]
Sent: Thursday, February 24, 2005 2:32 PM
To: dev@xmlbeans.apache.org
Subject: namespace in schema not in XML
Hi,
I am new to XML and new to XML beans.
I am trying to capture the XML from a bunch of reports. The XML
reports have a schema that has declared a namespace. Unfortunately,
the sample files the vendor has provided me with do not contain any
references to that namespace.
I am currently experiencing the following error:
[java] org.apache.xmlbeans.XmlException:
C:\_dev\projects\xmlbeansapp\xml\DA_TEMU_01292005_01222005-S7.xml:0:
error: The document is not a DA_STLMT@http://uri/xml: document element
namespace mismatch expected "http://uri/xml" got ""
[java] at
org.apache.xmlbeans.impl.store.Root.verifyDocumentType(Root.java:501)
[java] at
org.apache.xmlbeans.impl.store.Root.autoTypedDocument(Root.java:417)
[java] at org.apache.xmlbeans.impl.store.Root.loadXml(Root.java:1038)
[java] at org.apache.xmlbeans.impl.store.Root.loadXml(Root.java:1022)
[java] at
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:319)
[java] at
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:230)
[java] at
org.midwestiso.markets.markets.xml.DASTLMTDocument$Factory.parse(Unknown
Source)
[java] at com.***.sample.Sample.main(Sample.java:25)
[java] Exception in thread "main"
[java] Java Result: 1
Is there anyway to ignore the namespace verification?
Thanks,
Bernard
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic