Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Basic XML question Basic XML questionTo: NULL Date: 7/10/2009 11:12:00 PM It seems that nodes can have different definitions:
<box>
<spec>12</spec>
<spec>13</spec>
</box>
<box>
<spec id="BA" value="short"/>
<spec id="BB" value="thin"/>
</box>
1) The first box node contains two nodes without attributes that is
"closed": <spec>...</spec>
- these kind of nodes only seems to have a "textContent"
2) The second box node contains two nodes with two attributes that is "open"
<spec ..... />
- These nodes does not have a "textContent"
What are these different ways of defining nodes called? And when is it good
to use the one instead of the other?
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
