G
Guest
When I define id attribute for both parent and child nodes, I get error of
conflict. For example, the following is invalid:
<parent id="1">
<child id="1">Name 1</child>
<child id="2">Name 2</child>
</parent>
Questions:
(1) If I do want to use id for both of them, how can I do?
(2) How can I read the attributes from DOM?
Thanks
David
conflict. For example, the following is invalid:
<parent id="1">
<child id="1">Name 1</child>
<child id="2">Name 2</child>
</parent>
Questions:
(1) If I do want to use id for both of them, how can I do?
(2) How can I read the attributes from DOM?
Thanks
David