XML Elements Naming
Hi All,
I have a doubt regarding XML elements naming.
Let say I have an XML document having an element
called <Area></Area>.
If I add a sub-element to the element <Area> with the
same name for e.g.
<Area>
<Area>
</Area>
</Area>
Is the above structure recommendable?
Will this structure cause any problems while parsing the XML file
using MSXML DOM parser?
Please guide me.
Thanks in advance,
Abhishek.
# 1 Re: XML Elements Naming
The above is perfectly legal XML code, recommendable ?, that really depends on the application, if your object model calls for structures like that, and you have a good argument why it`s needed then use it. Of course it's allways possible misuse any given structural construct, but I don't know anything about your object model, so I can't really comment on it.
khp at 2007-11-10 3:27:57 >

# 2 Re: XML Elements Naming
As already been stated that its a legal XML code, but if you don't have any particular reason to use this, then I don't think that you should use it, since it can cause confusion (even if you have to modify it in future, then it may confuse you as well). Remember the KISS principle.
Ejaz at 2007-11-10 3:29:00 >
