[XOM-interest] XOM refusing to parse (invalid?) xml

Adam Constabaris adamc at unc.edu
Fri Nov 7 10:21:54 EST 2008


If you are pasting your XML into the email *** exactly *** as it is in 
the source document, the offending characters are the newlines inside 
the quotes.

cheers,

AC

Jean Pierre Malrieu wrote:
> Hi,
> 
> XOM seems not to like the following xml, whereas xmlBeams, or Oxygen  
> parses and validates it happily.
> Is there something I can do to process this xml with XOM?
> 
> TIA
> 
> JPM
> 
> <message:MessageGroup xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic 
> "
>      xmlns:message="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message 
> "
>      xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic 
>   http://www.sdmx.org/docs/2_0/SDMXGenericData.xsd http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message 
>   http://www.sdmx.org/docs/2_0/SDMXMessage.xsd"
>      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>      <Header xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message 
> ">
>          <ID>none</ID>
>          <Test>false</Test>
>          <Truncated>false</Truncated>
>          <Prepared>2008-11-06T13:15:39</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>
>      <DataSet>
>          <KeyFamilyRef>CSP6</KeyFamilyRef>
>          <Series>
>              <SeriesKey>
>                  <Value concept="COU" value="AUS"/>
>                  <Value concept="SUB" value="EVOPOP_T1"/>
>              </SeriesKey>
>              <Attributes>
>                  <Value concept="TIME_FORMAT" value="P1Y"/>
>              </Attributes>
>              <Obs>
>                  <Time>1990</Time>
>                  <ObsValue value="1.706500000000000e+004"/>
>              </Obs>
>          </Series>
>      </DataSet>
> </message:MessageGroup>



More information about the XOM-interest mailing list