The children element helps to describe the data and give it structure. If
you have the Children element you can start to say things like "I know where
all of the Child elements are"
But really with XML the rules and structure of the data are in your hands,
the best tip I can give is to always have XSD Schema's that you can validate
your xml files against. As rules and structure in XML make processing it
more robust.
Neill
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of David FOXWELL
Sent: 09 March 2010 17:13
To: Web Enabling the AS400 / iSeries
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 not using the element
<children>?
We do not use attributes.
Thanks.
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.