Hi all, I have to decide on an XML structure going forward. The
structure is going to house a large amount of data. In the past I've
always just used the philosophy of "when in doubt use elements" - but
I just read this article:
http://msdn.microsoft.com/library/de...ml02212000.asp
And there is some indication that you will gain performance benefits
from XML that uses attributes rather than elements - example:
<grandparent>
<parent>
<child>
<name>
tony
</name>
</child>
<name>
Sarah
</name>
</parent>
<name>
Tom
</name>
</grandparent>
OR
<grandparent name='Tom'>
<parent name='sarah'>
<child name='tony'>
</child>
</parent>
</grandparent>
Now obviously in the first case you leave it open if you want to have
a deeper structure to name - like firstName, lastName, middleName,
alias, etc.
But if we were to assume that the XML structure will never change (I
know that is unlikely in many scenarios) but if it were to remain the
same, would there likely be a decrease in parsing time when I use the
transform method of XSLTransform (the .NET class) - in addition, I am
passing XPath queries (through a XPathNodeIterator object).
Thanks,
Novice