|
Hi all,
Vern, am I relieved to read that YOU are confused!
Posted last night before leaving the office. Just arrived to find a rather long thread has developped. Sorry to say that I'm none the wiser, even I could see that the example with the <children> element was more human readable.
I'm going to be processing this XML with XSL-FO. As I'm new to that language as well and I haven't used it for a while, maybe I should think about how I'm going to write my XSL.
But, here's a question : should I be writing the XML so that it is easily read by XSL? Like I'd do in a simple chain of RPG programs : extraction by the first into a workfile, then read the workfile that is structured so that the 2nd RPG can do the report with the cycle and no C specs. Should I have to think about the technology used to process the XML?
-----Message d'origine-----
De : web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] De la part de Vern Hamberg
Envoyé : mercredi 10 mars 2010 00:35
À : Web Enabling the AS400 / iSeries
Objet : Re: [WEB400] Basic question on XML structure
Well, he DID say it was not well-structured - did he mean it is not well-formed? Am I mistaken there? I had no problem understanding David's "structure", even though indentation and white-space would have clarified it. It is obvious to me that <name> and <child> were siblings
- human readability is nice but not required for well-formed XML, as far as I know.
Still confused!
Vern
Neill Harper wrote:
Yeah sorry might be a little bit of confusion here.purposes
I was questioning "You express the XML snippits wrong"
I can see now that what you were getting at is that for theof readability (by a human) siblings should have the sameindentation level.
And you were not suggesting that the OP's original post would not parse or was not valid XML.[mailto:web400-bounces@xxxxxxxxxxxx]
Cheers
Neill
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxxOn Behalf Of hr@xxxxxxxxxxxxthe parent
Sent: 09 March 2010 21:13
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Basic question on XML structure
I wrote my example with idents like you walk trough the memory structure in a hirachical data structure making who is who in a parent/child/sibling understandable
<client>
<name>
<child>
isn't true "child and name" are siblings and "name" is notof "child", "client" are, and therefore they should beexpressed like this:
<client>poster's example.
<name>
<child>
Jeff Crosby <jlcrosby@xxxxxxxxxxxxxxxx> Sent by: web400-bounces@xxxxxxxxxxxx 09-03-2010 21:36 Please respond to Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
To
"Web Enabling the AS400 / iSeries" <web400@xxxxxxxxxxxx> cc
Subject
Re: [WEB400] Basic question on XML structure
Yes, I saw it right away. I also saw it in the original
But it has nothing to do with my question.yours and the
Along with Neill I am asking what is different betweenoriginal posters?respond to Web
On Tue, Mar 9, 2010 at 3:34 PM, <hr@xxxxxxxxxxxx> wrote:
Can't you see where the array is and isn't in this structure:
Lets make is visiual:
<client>
<name>bill</name>
<children>
<child>
<name>jon</name>
</child>
<child>
<name>joe</name>
</child>
<child>
<name>alex</name>
</child>
<child>
<name>peter</name>
</child>
</children>
<address>My home street</address>
</client>
<client>
<name>bill</name>
<child>
<name>jon</name>
</child>
<child>
<name>joe</name>
</child>
<address>My home street</address>
<child>
<name>alex</name>
</child>
<child>
<name>peter</name>
</child>
</client>
Jeff Crosby <jlcrosby@xxxxxxxxxxxxxxxx> Sent by: web400-bounces@xxxxxxxxxxxx 09-03-2010 20:54 Please respond to Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
To
"Web Enabling the AS400 / iSeries" <web400@xxxxxxxxxxxx> cc
Subject
Re: [WEB400] Basic question on XML structure
I don't see it. I need another clue.
Or else save us all time and just tell us.
On Tue, Mar 9, 2010 at 2:52 PM, <hr@xxxxxxxxxxxx> wrote:
You should look at my second example, it explains it all
"Neill Harper" <neill.harper@xxxxxxxx> Sent by: web400-bounces@xxxxxxxxxxxx 09-03-2010 20:17 PleaseOP's apartEnabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
To
"'Web Enabling the AS400 / iSeries'" <web400@xxxxxxxxxxxx> cc
Subject
Re: [WEB400] Basic question on XML structure
I can't spot the difference between your snippet and the
standards compliantfrom
the
whitespace, which will of course be ignored by arespond to Webparser anyway.On
Did I miss something else?
Neill
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
Behalf Of hr@xxxxxxxxxxxx
Sent: 09 March 2010 18:55
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Basic question on XML structure
You express the XML snippits wrong, it should be
<client>
<name>bill</name>
<children>
<child>
<name>jon</name>
</child>
<child>
<name>joe</name>
</child>
</children>
</client>
<client>
<name>bill</name>
<child>
<name>jon</name>
</child>
<child>
<name>joe</name>
</child>
</client>
The first structure is weel structured, the second isn't.
David FOXWELL <David.FOXWELL@xxxxxxxxx> Sent by: web400-bounces@xxxxxxxxxxxx 09-03-2010 18:12 Pleaseusing theEnabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
To
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx> cc
Subject
[WEB400] Basic question on XML structure
Hi all,
A little inexperienced in xml here.
Compare these 2 structures :
<client>
<name>bill</name>
<children>
<child>
<name>jon</name>
</child>
<child>
<name>joe</name>
</child>
</children>
</client>
<client>
<name>bill</name>
<child>
<name>jon</name>
</child>
<child>
<name>joe</name>
</child>
</client>
Are there any advantages or disadvantages to using or notmailing listelement <children>?
We do not use attributes.
Thanks.
--
This is the Web Enabling the AS400 / iSeries (WEB400)please take aTo post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx Before posting,http://archive.midrange.com/web400.moment to review the archives at
mailing list--
This is the Web Enabling the AS400 / iSeries (WEB400)please take aTo post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx Before posting,http://archive.midrange.com/web400.moment to review the archives at
mailing list--
This is the Web Enabling the AS400 / iSeries (WEB400)please take aTo post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx Before posting,http://archive.midrange.com/web400.moment to review the archives at
mailing list--
This is the Web Enabling the AS400 / iSeries (WEB400)please take aTo post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx Before posting,http://archive.midrange.com/web400.moment to review the archives at
opinion of--
Jeff Crosby
VP Information Systems
UniPro FoodService/Dilgard
P.O. Box 13369
Ft. Wayne, IN 46868-3369
260-422-7531
www.dilgardfoods.com
The opinions expressed are my own and not necessarily themailing list Tomy company. Unless I say so.
--
This is the Web Enabling the AS400 / iSeries (WEB400)unsubscribe,post a message email: WEB400@xxxxxxxxxxxx To subscribe,please take aor change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx Before posting,http://archive.midrange.com/web400.moment to review the archives at
mailing list To--
This is the Web Enabling the AS400 / iSeries (WEB400)unsubscribe,post a message email: WEB400@xxxxxxxxxxxx To subscribe,please take aor change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx Before posting,http://archive.midrange.com/web400.moment to review the archives at
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.