So, anyways, I'm creating a DTD for an XML document and have a few questions...
I have a vendor that has an address. The address consists of various elements such as
street, city, etc. Now then, the address element itself has no attributes or data
directly in it. Is it worth having an address element?
e.g.
<address>
<street>123 any street</street>
<city>calgary</city>
</address>
Also, when creating the XML document, if there is no street, should I do
<street></street> or just omit the attribute altogether? Do parsers get angry when
there are elements that are empty?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists