Re[4]: [xmljs-users] New to xml, looking for some guidance
Brought to you by:
djoham,
witchhunter
|
From: Christopher B. <cb...@co...> - 2004-07-07 18:48:36
|
Hi David,
DJ> IMHO, it's better to organize them as child
DJ> nodes.
<snip>...
Yes, now I think I get it.
Instead of:
<faculty class="academic" id="sbeacon">
<name>Shirley Beacon</name>
<email>sb...@st...</email>
</faculty>
I now have:
<class id="academic">
<faculty id="sbeacon">
<name>Shirley Beacon</name>
<email>sb...@st...</email>
</faculty>
</class>
DJ> It would be very simple for you to modify the
DJ> script to return all of the nodes with the
DJ> specific attribute and value.
Doesn't seem needed, now, but thanks. A few other quick questions...First, do I need the <root> node? Does it have to be called 'root'?
Also, I have seen a few examples showing how to use the browser to parse xml. Should I consider this? Advantages/disadvantages?
Thanks! I'm out of questions (for now), I promise!
-Chris |