Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Missing scheme in absolute URI reference

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Arjan Huijzer" <huijzer AT gmail.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Missing scheme in absolute URI reference
  • Date: Thu, 21 Dec 2006 13:51:27 +0100

Hello all,

I am using XOM 1.1 and I get the following error when I parse my XML
document:

Exception in thread "main" nu.xom.ParsingException: Missing scheme in
absolute URI reference
at nu.xom.Builder.build(Builder.java:1146)
at nu.xom.Builder.build(Builder.java:614)
at nu.xom.Builder.build(Builder.java:990)
at Test.main(Test.java:10)
Caused by: nu.xom.MalformedURIException: Missing scheme in absolute URI
reference
at nu.xom.Verifier.throwMalformedURIException(Verifier.java:161)
at nu.xom.Verifier.checkAbsoluteURIReference(Verifier.java:902)
at nu.xom.Element.build(Element.java:140)
at nu.xom.NonVerifyingHandler.startElement(NonVerifyingHandler.java:41)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNamespaceBinder.handleStartElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNamespaceBinder.startElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.DTDConfiguration.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.DTDConfiguration.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
at nu.xom.Builder.build(Builder.java:1127)
... 3 more



My XML document looks like:


<asset_list xmlns="wke_asset_list" version="1.0">
<!-- some content -->
</asset_list>


When I modify the value of the xmlns attribute to "http://wke_asset_list"; it
works.
Can someone shed some light on this? I would hate to have to modify the
namespace.

Thanks in advance,
Arjan Huijzer




Archive powered by MHonArc 2.6.24.

Top of Page