xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
[XOM-interest] [Nux] [StaX] Validating an XML document with Xom
- From: "Verachten Bruno" <Bruno.Verachten AT atosorigin.com>
- To: <xom-interest AT lists.ibiblio.org>
- Subject: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom
- Date: Wed, 15 Mar 2006 11:00:53 +0100
Hi,
I'm fairly new to NUX & XOM, I only downloaded the jars yesterday.
I'm trying to validate a BIG xml file thanks to XOM.
I found a snippet in the Javadoc, so I tried this :
Map schemaLocations = new HashMap();
schemaLocations.put(new File("/tmp/p2pio.xsd"),
"http://dsd.lbl.gov/p2pio-1.0");
Builder builder = new
BuilderFactory().createW3CBuilder(schemaLocations);
That sounds good to me, except that I need a StaxBuilder.
StaxBuilder staxBuilder = new StaxBuilder();
Document document = staxBuilder.build(reader);
How can I link the two builders?
Thanks in advance,
Bruno Verachten
-
[XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Verachten Bruno, 03/15/2006
-
Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Wolfgang Hoschek, 03/15/2006
-
Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Tatu Saloranta, 03/16/2006
- Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom, Michael Kay, 03/16/2006
-
Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Tatu Saloranta, 03/16/2006
- <Possible follow-up(s)>
-
Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Verachten Bruno, 03/16/2006
- Re: [XOM-interest] (OT) [Nux] [StaX] Validating an XML document with Xom, Tatu Saloranta, 03/16/2006
- Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom, Tatu Saloranta, 03/16/2006
-
Re: [XOM-interest] [Nux] [StaX] Validating an XML document with Xom,
Wolfgang Hoschek, 03/15/2006
Archive powered by MHonArc 2.6.24.