xml style questions

Mark D. Anderson mda at discerning.com
Mon Mar 1 21:04:56 GMT 1999


before you scream, this isn't about style sheets, and it
isn't about attributes vs. elements.
rather, this is more how to structure your document/data.

any words of wisdom regarding:

1) having an extra collection layer in the xml tree, like
<root><things><thing></thing><thing></thing></things><another></another></root>
vs.
<root>><thing></thing><thing></thing><another></another></root>

2) having PCDATA vs. having a distinct "comment" or "description" element child:
<thing a="1" b="2">
this is the description of this thing
<some_child></some_child>
</thing>
vs.
<thing a="1" b="2">
<desc>this is the description of this thing</desc>
<some_child></some_child>
</thing>

-mda



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list