Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Setting schema declaration on root element

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Daniel Rohlfs" <drohlfs AT gmx.net>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Setting schema declaration on root element
  • Date: Wed, 29 Nov 2006 17:13:43 +0100

> You have to specify the namespace URI when creating an attribute in a
> namespace. See the JavaDoc but this should work:
>
> Attribute schemaDecl = new Attribute("xsi:noNamespaceSchemaLocation",
> "http://www.w3.org/2001/XMLSchema-instance";, "assetpos.xsd");
>
> XOM has no way to no which namespace declarations may be in scope on
> which other elements elsewhere in your program. There's no global
> namespace context it can read from.
>
> --
> Elliotte Rusty Harold elharo AT metalab.unc.edu
> Java I/O 2nd Edition Just Published!
> http://www.cafeaulait.org/books/javaio2/
> http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/

Woah that was fast ;).

Yepp that works. Thank you very much Elliotte.
I never tried it like that.. I ran to fast into the wall it seems :) .

--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer




Archive powered by MHonArc 2.6.24.

Top of Page