Hi,
Sorry because I don't have good knowledge of DOM.
For example, we have this document
<note time="12:03:46">
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>I forget</body>
</note>
And if we represent it as a tree, we will have
note
/ / \ \
to from heading body
| | | |
Tove Jani Reminder I forget
I don't know how to draw the attribute in this tree structure. Please help me.
And I get confused with the element node, attribute node and text node. In this tree, are the nodes such as to, from, heading, body the element nodes?
Thank you in advance.
Sorry because I don't have good knowledge of DOM.
For example, we have this document
<note time="12:03:46">
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>I forget</body>
</note>
And if we represent it as a tree, we will have
note
/ / \ \
to from heading body
| | | |
Tove Jani Reminder I forget
I don't know how to draw the attribute in this tree structure. Please help me.
And I get confused with the element node, attribute node and text node. In this tree, are the nodes such as to, from, heading, body the element nodes?
Thank you in advance.