xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Nils_Kilden-Pedersen AT Countrywide.Com
- To: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] XInclude exception
- Date: Mon, 22 Sep 2003 10:30:19 -0700
I should add, that I am reading in the document as DOM using Xerces 2.5.0
(which should resolve XInclude by itself, but I'm not sure if it does, or
how it works), and then using the DOMConverter to convert to XOM, which is
where the exception occurs.
Thanks,
Nils
xom-interest-bounces AT lists.ibiblio.org wrote on 09/22/2003 10:14:06 AM:
> I have this XML:
> <?xml version="1.0" encoding="UTF-8"?>
> <root xmlns:xi="http://www.w3.org/2001/XInclude">
> <xi:include href="some.xml"/>
> </root>
>
> Is this incorrect use of XInclude?
>
> XOM throws this exception:
> Exception in thread "main" nu.xom.NamespaceException: Attribute objects
> are not
> used to represent namespace declarations
> at nu.xom.Attribute.setNamespace(Attribute.java:407)
> at nu.xom.Attribute.<init>(Attribute.java:150)
> at nu.xom.Attribute.<init>(Attribute.java:116)
> at nu.xom.converters.DOMConverter.convert(DOMConverter.java:186)
> at
nu.xom.converters.DOMConverter.translate(DOMConverter.java:91)
> at test.Test.main(Test.java:40)
>
>
> Thanks,
> Nils
>
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
>
-
[XOM-interest] XInclude exception,
Nils_Kilden-Pedersen, 09/22/2003
- Re: [XOM-interest] XInclude exception, Nils_Kilden-Pedersen, 09/22/2003
- <Possible follow-up(s)>
- Re: [XOM-interest] XInclude exception, Elliotte Rusty Harold, 09/22/2003
- Re: [XOM-interest] XInclude exception, Elliotte Rusty Harold, 09/22/2003
Archive powered by MHonArc 2.6.24.