perfsonar-dev - Re: [pS-dev] failure of converting returning message (XML) to DOM
Subject: perfsonar development work
List archive
- From: ulisses <>
- To:
- Subject: Re: [pS-dev] failure of converting returning message (XML) to DOM
- Date: Wed, 23 Aug 2006 13:08:18 +0200
Hi again
I managed to have a very minimum version of the XML document that fails
to convert to DOM:
<nmwg:message id="localhost.localdomain.66dffd41:10d3ab5e77b:-7ffe"
type="TOPSDownloadDBResponse"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
<nmwg:metadata id="TOPSDownloadDBResponseMetadata"/>
<nmwg:data id="TOPSDownloadDBResponse"
metadataIdRef="TOPSDownloadDBResponseMetadata">
<nmwg:data id="localhost.localdomain.66dffd41:10d3ab5e77b:-7fff">
<nmwgtopo3:link
id="localhost.localdomain.66dffd41:10d3ab5e77b:-8000"
xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/l3/3.0/">
<nmwgtopo3:name>test</nmwgtopo3:name>
</nmwgtopo3:link>
</nmwg:data>
</nmwg:data>
</nmwg:message>
any hint? thanks
Ulisses
On 2006-08-23 12:55:12, ulisses wrote:
> On 2006-08-23 12:38:14, ulisses wrote:
> > Hi all again
> >
> > before holidays I was trying to understand why I was failing to convert
> > XML to DOM
> >
> > now, I have noticed something I think it is not ok:
> >
> > In the following sample XML document, there are two occurrencies of one
> > medatada element with
> > the same ID (marked with [1]. I yet don't know why appears the second
> > instance of that element.
> >
> > this looks wrong, isn't it? or am I missing something?
>
>
> well, I have found the problem of why there was being inserted two metadata
> elements with the
> same ID, and I now generate a more nice looking xml, in any case I don't
> figure out why it cannot be converted to DOM:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <nmwg:message xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
> id="resultCodeMessage">
> <nmwg:metadata id="resultCodeMetadata">
> <nmwg:eventType>error.common.parse_error</nmwg:eventType>
> </nmwg:metadata>
> <nmwg:data id="resultDescriptionData_for_resultCodeMetadata"
> metadataIdRef="resultCodeMetadata">
> <nmwg:datum value="Cannot convert Message to DOM" />
> </nmwg:data>
> </nmwg:message>
>
> The XML file is
>
> <nmwg:message id="localhost.localdomain.-5ae93b59:10d3a9f2382:-7e75"
> type="TOPSDownloadDBResponse"
> xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
> <nmwg:metadata id="TOPSDownloadDBResponseMetadata"/>
> <nmwg:data id="TOPSDownloadDBResponse"
> metadataIdRef="TOPSDownloadDBResponseMetadata">
> <nmwg:data id="localhost.localdomain.-5ae93b59:10d3a9f2382:-7e76">
> <nmwgtopo3:node
> id="localhost.localdomain.-5ae93b59:10d3a9f2382:-7f41"
> xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/">
>
> <nmwgtopo3:hostName>landas-gw.uninett.no</nmwgtopo3:hostName>
> <nmwgtopo3:name>landas-gw.uninett.no</nmwgtopo3:name>
> </nmwgtopo3:node>
> <nmwgtopo3:node
> id="localhost.localdomain.-5ae93b59:10d3a9f2382:-7f71"
> xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/">
>
> <nmwgtopo3:hostName>svalbard-gw.uninett.no</nmwgtopo3:hostName>
> <nmwgtopo3:name>svalbard-gw.uninett.no</nmwgtopo3:name>
> </nmwgtopo3:node>
> </nmwg:data>
> <nmwg:data id="localhost.localdomain.-5ae93b59:10d3a9f2382:-7f9a">
> <nmwgtopo3:link
> id="localhost.localdomain.-5ae93b59:10d3a9f2382:-7fc3"
> xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/l3/3.0/">
> <nmwgtopo3:interface
> id="localhost.localdomain.-5ae93b59:10d3a9f2382:-7fc4"
> interfaceIdRef="private_index: 0, snmp_ifindex: unknown">
>
> <nmwgtopo3:ifDescription>NULLGE-0/2/0.30</nmwgtopo3:ifDescription>
> <nmwgtopo3:type>other</nmwgtopo3:type>
> <nmwgtopo3:capacity>0</nmwgtopo3:capacity>
> <nmwgtopo3:netmask>62.40.100.144/28</nmwgtopo3:netmask>
> <nmwgtopo3:ipAddress value="62.40.100.145"/>
> </nmwgtopo3:interface>
> <nmwgtopo3:name>hr1.hr.geant.net_62.40.100.144/28 -
> _</nmwgtopo3:name>
> </nmwgtopo3:link>
> <nmwgtopo3:link
> id="localhost.localdomain.-5ae93b59:10d3a9f2382:-7faf"
> xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/l3/3.0/">
> <nmwgtopo3:interface
> id="localhost.localdomain.-5ae93b59:10d3a9f2382:-7fb0"
> interfaceIdRef="private_index: 0, snmp_ifindex: unknown">
>
> <nmwgtopo3:ifDescription>SO-1/2/0</nmwgtopo3:ifDescription>
> <nmwgtopo3:type>other</nmwgtopo3:type>
> <nmwgtopo3:capacity>0</nmwgtopo3:capacity>
> <nmwgtopo3:netmask>62.40.103.100/30</nmwgtopo3:netmask>
> <nmwgtopo3:ipAddress value="62.40.103.101"/>
> </nmwgtopo3:interface>
> <nmwgtopo3:name>nl1.nl.geant.net_62.40.103.100/30 -
> _</nmwgtopo3:name>
> </nmwgtopo3:link>
> </nmwg:data>
> </nmwg:data>
> </nmwg:message>
>
>
> any hint on how hunt this problem will be greatly appreciated
>
> regards
>
> Ulisses
>
> >
> > Thanks in advance
> >
> > Ulisses
> >
> > > ><nmwg:message id="msg2_resp" messageIdRef="msg2"
> > > > type="TOPSDownloadDBResponse"
> > > > xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
> > > > <nmwg:metadata id="TOPSDownloadDBResponseMetadata_0"/> //
> > > > [1]
> > > > <nmwg:data id="TOPSDownloadDBResponse_0"
> > > > metadataIdRef="TOPSDownloadDBResponseMetadata_0">
> > > > <nmwg:metadata id="TOPSDownloadDBResponseMetadata_0"/> //
> > > > [1]
> > > > <nmwg:data
> > > > id="localhost.localdomain.-7edd1411:10cb415db62:-7ffe">
> > > > <nmwgtopo3:link
> > > > id="localhost.localdomain.-7edd1411:10cb415db62:-7fff"
> > > >
> > > > xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/l3/3.0/">
> > > > <nmwgtopo3:interface
> > > >
> > > > id="localhost.localdomain.-7edd1411:10cb415db62:-8000"
> > > > interfaceIdRef="private_index: 0, snmp_ifindex:
> > > > unknown">
> > > >
> > > > <nmwgtopo3:ifDescription>GE-0/0/0.20</nmwgtopo3:ifDescription>
> > > > <nmwgtopo3:type>other</nmwgtopo3:type>
> > > > <nmwgtopo3:capacity>0</nmwgtopo3:capacity>
> > > >
> > > > <nmwgtopo3:netmask>62.40.98.40/29</nmwgtopo3:netmask>
> > > > <nmwgtopo3:ipAddress value="62.40.98.41"/>
> > > > </nmwgtopo3:interface>
> > > > <nmwgtopo3:name>be1.be.geant.net_62.40.98.40/29 -
> > > > _</nmwgtopo3:name>
> > > > </nmwgtopo3:link>
> > > > </nmwg:data>
> > > > </nmwg:data>
> > > ></nmwg:message>
- Re: [pS-dev] failure of converting returning message (XML) to DOM, ulisses, 08/23/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, ulisses, 08/23/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, ulisses, 08/23/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, Roman Lapacz, 08/23/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, ulisses, 08/24/2006
- Re: [GN2-JRA1] [pS-dev] failure of converting returning message (XML) to DOM, Jason Zurawski, 08/27/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, ulisses, 08/24/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, Loukik Kudarimoti, 08/23/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, ulisses, 08/24/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, Loukik Kudarimoti, 08/24/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, ulisses, 08/25/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, Jeff W. Boote, 08/25/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, Loukik Kudarimoti, 08/25/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, Jason Zurawski, 08/27/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, ulisses, 08/25/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, Loukik Kudarimoti, 08/24/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, ulisses, 08/24/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, Roman Lapacz, 08/23/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, ulisses, 08/23/2006
- Re: [pS-dev] failure of converting returning message (XML) to DOM, ulisses, 08/23/2006
Archive powered by MHonArc 2.6.16.