xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] XOM refusing to parse (invalid?) xml
- From: Jean Pierre Malrieu <jp.malrieu AT free.fr>
- To: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] XOM refusing to parse (invalid?) xml
- Date: Fri, 7 Nov 2008 23:06:20 +0100
Sorry for my first message lacking necessary information.
Here is the stack trace (for another xml and schema than in my first post, but from the same web service).
I have removed all the xml content under the <CodeLists> element to reduce the size of this email.
java.net.MalformedURLException: no protocol: <message:Structure xmlns:message="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/ message" xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure http://www.sdmx.org/docs/2_0/SDMXStructure.xsd http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message http://www.sdmx.org/docs/2_0/SDMXMessage.xsd"><Header xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message "><ID>none</ID><Test>false</Test><Truncated>false</ Truncated><Prepared>2008-11-07T22:52:03</Prepared><Sender id="OECD"><Name xml:lang="en">Organisation for Economic Co-operation and Development</Name><Name xml:lang="fr">Organisation de coopŽration et de dŽveloppement Žconomiques</Name></Sender></Header><message:CodeLists ></message:CodeLists><message:Concepts><Concept id="SUB" agencyID="OECD"><Name xml:lang="en">Subject</Name><Name xml:lang="fr">Sujet</Name></Concept><Concept id="COU" agencyID="OECD"><Name xml:lang="en">Country</Name><Name xml:lang="fr">Pays</Name></Concept><Concept id="YEA" agencyID="OECD"><Name xml:lang="en">Year</Name><Name xml:lang="fr">AnnŽe</Name></Concept><Concept id="OBS_STATUS" agencyID="OECD"><Name xml:lang="en">Observation Status</Name><Name xml:lang="fr">Statut d'observation</Name></Concept></message:Concepts><message:KeyFamilies ><KeyFamily id="CSP2008" agencyID="OECD"><Name xml:lang="en"> Country statistical profiles 2008</Name><Name xml:lang="fr"> Profils statistiques par pays 2008</Name><Components><Dimension conceptRef="SUB" codelist="CL_CSP2008_SUB" /><Dimension conceptRef="COU" codelist="CL_CSP2008_LOCATION" /><TimeDimension conceptRef="YEA" codelist="CL_CSP2008_TIME" /><PrimaryMeasure conceptRef="OBS_VALUE"><TextFormat textType="Double" /></ PrimaryMeasure><Attribute conceptRef="OBS_STATUS" codelist="CL_CSP2008_OBS_STATUS" attachmentLevel="Observation" assignmentStatus="Conditional" /></Components></KeyFamily></message:KeyFamilies ></message:Structure>
at java.net.URL.<init>(URL.java:567)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at org .apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java: 807)
at org .apache .xerces .impl.XMLEntityManager.startDocumentEntity(XMLEntityManager.java:753)
at org .apache .xerces .impl .XMLDocumentScannerImpl.setInputSource(XMLDocumentScannerImpl.java:260)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 499)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org .apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java: 1175)
at nu.xom.Builder.build(Unknown Source)
Le 7 nov. 08 à 15:38, Elliotte Harold a écrit :
Michael Kay wrote:
Go on, give us a clue - tell us what the error message is.
XOM is stricter than most XML tools about insisting that namespace URIs are
valid URIs, so it might be that.
Yes, that occurred to me as well. However at a quick glance the namespace URIs look fine. The error message should hopefully resolve the issue.
--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Refactoring HTML Just Published!
http://www.amazon.com/exec/obidos/ISBN=0321503635/ref=nosim/ cafeaulaitA
-
[XOM-interest] XOM refusing to parse (invalid?) xml,
Jean Pierre Malrieu, 11/06/2008
-
Re: [XOM-interest] XOM refusing to parse (invalid?) xml,
Michael Kay, 11/06/2008
-
Re: [XOM-interest] XOM refusing to parse (invalid?) xml,
Elliotte Harold, 11/07/2008
-
Re: [XOM-interest] XOM refusing to parse (invalid?) xml,
Jean Pierre Malrieu, 11/07/2008
- Re: [XOM-interest] XOM refusing to parse (invalid?) xml, Jean Pierre Malrieu, 11/08/2008
-
Re: [XOM-interest] XOM refusing to parse (invalid?) xml,
Jean Pierre Malrieu, 11/07/2008
-
Re: [XOM-interest] XOM refusing to parse (invalid?) xml,
Elliotte Harold, 11/07/2008
- Re: [XOM-interest] XOM refusing to parse (invalid?) xml, Adam Constabaris, 11/07/2008
-
Re: [XOM-interest] XOM refusing to parse (invalid?) xml,
Michael Kay, 11/06/2008
Archive powered by MHonArc 2.6.24.