.append (newnode)
.appendChild(newnode)
.append(newnode, ,reference_node)
.appendChild(newnode,reference_node)
B. .appendChild(newnode)
<details>
<subject>
<roll>10</roll>
<name>Jayanta</name>
</subject> <subject>
<name>Bipul</name>
<roll>20</roll> </subject>
</details>
True
False
.............…/nodename/name[salary>10000]
............…/nodename.nodes/name[salary>10000]
.............…/nodename[salary>10000]/name
..............…/nodename[salary>10000].nodes/name
apply-templates
select
Any one of the above
Both of the above
Copies whole structure of the current node along with sub tags and data
Copies only the current node
Copies all leaf nodes
None of the above
ATTLST
ATTLIST
ATTRIBUTE
LIST
True
False
True
False
1.0
2.0
3.0
4.0
CDATA
<!-- -- >
//
/* */
True
False
Copies whole structure
Copies only the current node
Copies all leaf nodes
None of the above
...............…/nodename[0]
..................…/nodename[1]
.................…/nodename[0].nodes
..................…/nodename[1].nodes
content="textOnly"
content="text"
content="#PCDATA"
content="DATA"
True
False
XPointer, XPath
XPath, XPointer
XPath, Xlink
XQuery, Xlink
<Element Type="roll" minOccurs="1" maxOccurs="1"/>
<element type="roll" minOccurs="1" maxOccurs="1"/>
<ElementType="roll" minOccurs="1" maxOccurs="1"/>
<Element Type="roll" minOccurs="1" maxOccurs="1"/>
Name of object
Name of component
Name of class
None of the above
.append (newnode)
.appendChild(newnode)
.append(newnode, ,reference_node)
.appendChild(newnode,reference_node)
match=".[centre='MP']"
match=".[centre=MP]"
match=".[@centre='MP']"
match=.[@centre='MP']
True
False
True
False
insert
insertAfter
AddNew
InsertBefore
Bottom Up approach
Top Down approach
True
False
True
False
&attribute name;
&attribute name
attribute name
attribute name;
<ElementType name="roll" content="textOnly" dt:type="int"/>
<ElementType name="roll" content="textOnly" dt:dt="int"/>
<element type="roll" content="textOnly" dt:type="int"/>
<element type="roll" content="textOnly" dt:type="int"/>
<!ELEMENT name (PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT name (#DATA)>
<!ELEMENT name (DATA)>
True
False
dataType
type
dt:type
data:type