On 4/30/07, <b class="gmail_sendername">George Neill</b> <<a href="mailto:georgen@neillnet.com">georgen@neillnet.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Quoting Rob Townley <<a href="mailto:rob.townley@gmail.com">rob.townley@gmail.com</a>>:<br><br>> Several years ago, elements were better.<br><br>There's no good answer, I believe it depends what you are trying to
<br>do. Elements are nice because they are extendible/readable ... but<br>lengthy at times. Take a look at the link Jay provided, the author<br>makes good sense.<br><br>An example,<br><br><records><br> <record>
<br> <id>0</id><br> <fields><br> <field><br> <name>lastname</name><br> <length>20</length><br> </field><br> <field><br>
<name>city</name><br> <length>28</length><br> </field><br> <field><br> <name>zipcode</name><br> <length>5</length><br>
</field><br> </fields><br> </record><br></records><br><br>I find overkill. But apparently the M$ tools ('code generators')<br>slurp the above xml without having to write a lick of code. I would
<br>prefer something in the middle.<br><br><records><br> <record id="0"><br><br> <field name="lastname"><br> <length>20</length><br> </field><br><br>
<field name="city"><br> <length>28</length><br> </field><br><br> <field name="zipcode"><br> <length>5</length><br> </field><br>
<br> </record><br></records><br><br><br>Later,<br>George.<br><br>_______________________________________________<br>Omaha-pm mailing list<br><a href="mailto:Omaha-pm@pm.org">Omaha-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/omaha-pm">
http://mail.pm.org/mailman/listinfo/omaha-pm</a><br></blockquote></div><br><br>Even though i argued for using XML in about everything, the verbosity of many of XML projects subconsciously drove me away from programming, in particular, the XML MS products would spew out. However, judicious use of namespaces would help some. i remember having trouble with some of the dtd's when using a namespace version of an xml doc, so i wasn't able to use namespaces back then as much as i would have liked.
<br><br><records using namespace or however a ns is declared.><br> <id>0<br> <ns:fname>lastname</><br> <flength>20</><br> <fname>city</><br> <flength>28</>
<br> <fname>zipcode</><br> <flength>5</><br> </id> <br></records>