Altova Mailing List Archives


Re: Debugging XML?

From: "Umut Alev - MSFT" <ualev@-------.--->
To: NULL
Date: 5/11/2006 8:58:00 AM

Pete,
Your aaa.xml is not a valid xml

When you run
    var o = new ActiveXObject("Msxml2.DOMDocument.3.0");
    o.async = false;
    o.load("aaa.xml");
    WScript.echo(o.parseError.reason);
    WScript.echo("line:"+o.parseError.line);
    WScript.echo("linepos:"+o.parseError.linepos);

You get the following output
    A name contained an invalid character.
    line:18
    linepos3

And when you look at the xml file you would see that the element name is 
separated with a newline char.
........<frbny:FR
EQ>D<</frbny:FREQ>....

It should really read
........<frbny:FREQ>D<</frbny:FREQ>....

"(PeteCresswell)" <x@y...> wrote in message 
news:9uju52l1nnhfbkevr1nptfqd8gt07r0fug@4......
> Per Umut Alev - MSFT:
>>Could you attach the file to your reply?
>
> If you mean the problem XML file, here it is.   I'd suspect that
> any wrapping issues are artifacts of my news reader since the document
> is only 27 lines long viewed in NotePad with WordWrap=False.
>
> Accordingly, I flipped an email w/original to your HotMail account.
> ------------------------------------------------------------------
> <?xml version="1.0"?>
> <UtilityData 
> xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message"
> xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common"
> xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact"
> xmlns:cross="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross"
> xmlns:generic="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/generic"
> xmlns:query="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/query"
> xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/structure"
> xmlns:utility="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/utility"
> xmlns:frbny="http://www.newyorkfed.org/xml/schemas/FX/utility"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message
> http://www.sdmx.org/data/SDMXMessage.xsd
> http://www.newyorkfed.org/xml/schemas/FX/utility
> http://www.newyorkfed.org/xml/schemas/FX_Utility.xsd">
>    <Header>
>        <ID>FXOneDay</ID>
>        <Test>false</Test>
>        <Name xml:lang="en">Foreign Exchange Noon Rates</Name>
>        <Prepared>2006-05-07</Prepared>
>        <Sender id="FRBNY">
>            <Name xml:lang="en">Federal Reserve Bank of New York</Name>
>            <Contact>
>                <Name xml:lang="en">George Matthes</Name>
>                <Email>george.matthes@n...</Email>
>            </Contact>
>        </Sender>
>    </Header>
>    <frbny:DataSet>
>        <frbny:Series AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0"
> TIME_FORMAT="P1D" UNIT="USD" FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>AUD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>0.7203</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="BRL"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>2.1300</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="CAD"
> FX_METHOD="12" DISCLAIMER="12" AUTHORITY="12"><frbny:Key><frbny:FR
> EQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>1.1662</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="CNY"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>8.0194</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="DKK"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A" OBS_CONF="F">
> <frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>6.0883</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="USD"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>EUR</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>1.2258</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="HKD"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>7.7591</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="3"
> UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="INR" FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>44.580</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="2" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="JPY"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>117.44</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="MYR"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:
> FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>3.6810</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="MXN"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>10.8665</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="USD"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>NZD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A" 
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><f
> rbny:OBS_VALUE>0.6084</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="NOK"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>6.4190</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="SGD"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>1.6091</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="ZAR"
> FX_METHO
> D="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>6.0250</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="2" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="KRW"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>962.80</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="3" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="LKR"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:F
> X_TYPE></frbny:Key><frbny:Obs OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>102.580</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="SEK"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>7.6444</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="CHF"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>1.2898</frbny:OBS_VALUE></frbny:Obs>
> </frbny:Series><frbny:Series AVAILABILITY="A" DECIMALS="3" UNIT_MULT="0"
> TIME_FORMAT="P1D" UNIT="TWD" FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>32.420</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="3" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="THB"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>38.490</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="4" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="USD"
> FX_METHOD="12" DISCLAIMER="12" AUTHORITY="12"><frbny:Key><f
> rbny:FREQ>D</frbny:FREQ><frbny:CURR>GBP</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>1.7559</frbny:OBS_VALUE></frbny:Obs></frbny:Series><frbny:Series
> AVAILABILITY="A" DECIMALS="2" UNIT_MULT="0" TIME_FORMAT="P1D" UNIT="VEB"
> FX_METHOD="12" DISCLAIMER="12"
> AUTHORITY="12"><frbny:Key><frbny:FREQ>D</frbny:FREQ><frbny:CURR>USD</frbny:CURR><frbny:FX_TIME>12</frbny:FX_TIME><frbny:FX_TYPE>S</frbny:FX_TYPE></frbny:Key><frbny:Obs
> OBS_STATUS="A"
> OBS_CONF="F"><frbny:TIME_PERIOD>2006-04-04</frbny:TIME_PERIOD><frbny:OBS_VALUE>2144.60</frbny:OBS_VALUE></frbny:Obs></frbny:Series></frbny:DataSet>
> </UtilityData>
> ------------------------------------------------------------------
> -- 
> PeteCresswell 


Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.