perfsonar-dev - Re: [pS-dev] need clarification on xml nmwg
Subject: perfsonar development work
List archive
- From: ulisses <>
- To: "Jeff W. Boote" <>
- Cc:
- Subject: Re: [pS-dev] need clarification on xml nmwg
- Date: Fri, 25 Aug 2006 09:06:50 +0200
Hi Jeff!
On 2006-08-24 09:50:58, Jeff W. Boote wrote:
> These are development related questions - so I'm only responding on that
> list.
Thanks for the clarification
>
> ulisses wrote:
> >Hi all
> >
> >Because of my problems in XML conversions and some comments, I'm not sure
> >If I'm doing right when returning the xml. I understood that any XML
> >document syntactically correct should be ok.
> >
> >am I right? in this case I don't understand why I have xml to dom failures.
> >
> >Of course, a well organized xml document is preferable. Currently, in the
> >xml output I have to send as response, I have to return a list of links, a
> >list of n
> >odes [*] and the return code.
> >
> >Which should be the way do structure the document? are there guidelines?
> >
> >Maybe the way to do it should be:
>
> This is much closer to correct. As others have already pointed out - you
> had a very strange looking structure (nested data elements - metadata
> information in data elements...)
>
> ><nmwg:message>
> > <nmwg:metadata id="TOPSDownloadDBResponseMetadata"/>
> > <nmwg:data metadataIdRef="TOPSDownloadDBResponseMetadata">
> >
> > // list of link elements
> >
> > </nmwg:data>
> >
> > <nmwg:data metadataIdRef="TOPSDownloadDBResponseMetadata">
> >
> > // list of node elements
> >
> > </nmwg:data>
> >
> > // result code metadata and data
> >
> > <nmwg:metadata id="result code">
> > <nmwg:eventType>success.ls.remove</nmwg:eventType>
> > </nmwg:metadata>
> >
> > <nmwg:data id="result code description" metadataIdRef="result code">
> > <nmwg:datum>Text explaining the error message</nmwg:datum>
> > </nmwg:data>
> >
> ></nmwg:message>
>
> One thing that is not correct. You are reusing the same id's in metadata
> and data elements. id's should be unique unless they are referring to the
> 'same' element.
Excuse me but I don't see it. IMHO, All ids are different in this case. In
this case ids shown:
id="TOPSDownloadDBResponseMetadata"
id="result code"
id="result code description"
maybe you have been confused by id references?
Thanks
Ulisses
- need clarification on xml nmwg, ulisses, 08/24/2006
- Re: [pS-dev] need clarification on xml nmwg, Jeff W. Boote, 08/24/2006
- Re: [pS-dev] need clarification on xml nmwg, ulisses, 08/25/2006
- Re: [pS-dev] need clarification on xml nmwg, Jeff W. Boote, 08/25/2006
- Re: [pS-dev] need clarification on xml nmwg, Jason Zurawski, 08/27/2006
- Re: [pS-dev] need clarification on xml nmwg, ulisses, 08/25/2006
- Re: [pS-dev] need clarification on xml nmwg, Jeff W. Boote, 08/24/2006
Archive powered by MHonArc 2.6.16.