xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
RE: [XOM-interest] Cannot find the declaration of element...
- From: "Jacobs, Robert A." <ra.jacobs AT ngc.com>
- To: "Elliotte Harold" <elharo AT metalab.unc.edu>
- Cc: "XOM \(E-mail\)" <xom-interest AT lists.ibiblio.org>
- Subject: RE: [XOM-interest] Cannot find the declaration of element...
- Date: Wed, 9 Mar 2005 15:42:46 -0600
Thanks, Elliotte, for the *extremely* fast reply.
Using the method:
public Document build(InputStream in, String baseURI)
I am, once again, making progress.
For the benefit of the xom-interest list, I did have to make
one other adjustment to my source XML document (I think this has to
do with the fact that I am coming in through a JBoss application
server and using Struts).
I had to change:
xsi:schemaLocation="http://mil.jcsj2t.jtt30 apprentice-schema.xsd"
to
xsi:schemaLocation="http://mil.jcsj2t.jtt30 xml/apprentice-schema.xsd"
since the baseURI value I had to provide was basically a servlet context.
-----Original Message-----
From: Elliotte Harold [mailto:elharo AT metalab.unc.edu]
Sent: Wednesday, March 09, 2005 3:13 PM
To: Jacobs, Robert A.
Cc: XOM (E-mail)
Subject: Re: [XOM-interest] Cannot find the declaration of element...
Jacobs, Robert A. wrote:
> Is the fact that the source XML document is an InputStream making a
> difference
> here?
I may have jumped the gun. Disregard previous message. You are setting
up schemas properly, but you do need to give the document a base URI
that will let it resolve relative URLs. InputStreams do not have URIs.
--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
-
[XOM-interest] Cannot find the declaration of element...,
Jacobs, Robert A., 03/09/2005
- Re: [XOM-interest] Cannot find the declaration of element..., Elliotte Harold, 03/09/2005
- Re: [XOM-interest] Cannot find the declaration of element..., Elliotte Harold, 03/09/2005
- <Possible follow-up(s)>
- RE: [XOM-interest] Cannot find the declaration of element..., Jacobs, Robert A., 03/09/2005
Archive powered by MHonArc 2.6.24.