On 4/30/07, <b class="gmail_sendername">George Neill</b> &lt;<a href="mailto:georgen@neillnet.com">georgen@neillnet.com</a>&gt; 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 &lt;<a href="mailto:rob.townley@gmail.com">rob.townley@gmail.com</a>&gt;:<br><br>&gt; Several years ago, elements were better.<br><br>There&#39;s no good answer, I believe it depends what you are trying to
<br>do.&nbsp;&nbsp;Elements are nice because they are extendible/readable ... but<br>lengthy at times.&nbsp;&nbsp;Take a look at the link Jay provided, the author<br>makes good sense.<br><br>An example,<br><br>&lt;records&gt;<br>&nbsp;&nbsp; &lt;record&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;id&gt;0&lt;/id&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;fields&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;name&gt;lastname&lt;/name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;length&gt;20&lt;/length&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;name&gt;city&lt;/name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;length&gt;28&lt;/length&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;name&gt;zipcode&lt;/name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;length&gt;5&lt;/length&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fields&gt;<br>&nbsp;&nbsp; &lt;/record&gt;<br>&lt;/records&gt;<br><br>I find overkill.&nbsp;&nbsp;But apparently the M$ tools (&#39;code generators&#39;)<br>slurp the above xml without having to write a lick of code.&nbsp;&nbsp;I would
<br>prefer something in the middle.<br><br>&lt;records&gt;<br>&nbsp;&nbsp; &lt;record id=&quot;0&quot;&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;field name=&quot;lastname&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;length&gt;20&lt;/length&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br><br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;field name=&quot;city&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;length&gt;28&lt;/length&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;field name=&quot;zipcode&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;length&gt;5&lt;/length&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br>
<br>&nbsp;&nbsp; &lt;/record&gt;<br>&lt;/records&gt;<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.&nbsp; However, judicious use of namespaces would help some.&nbsp;&nbsp; i remember having&nbsp; trouble with some of the&nbsp; dtd&#39;s&nbsp; when&nbsp; using a namespace version of an xml doc, so i wasn&#39;t able to use namespaces back then as much as i would have liked.
<br><br>&lt;records using namespace or however a ns is declared.&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;id&gt;0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ns:fname&gt;lastname&lt;/&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp; &lt;flength&gt;20&lt;/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;fname&gt;city&lt;/&gt;<br>&nbsp;&nbsp; &nbsp;&nbsp; &lt;flength&gt;28&lt;/&gt;
<br>&nbsp;&nbsp;&nbsp; &nbsp; &lt;fname&gt;zipcode&lt;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;flength&gt;5&lt;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/id&gt;&nbsp;  <br>&lt;/records&gt;