Order-by="name"
Order-by="+name"
Order-by="-name"
Order-by="name" desc
C. Order-by="-name"
<!ELEMENT name (PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT name (#DATA)>
<!ELEMENT name (DATA)>
True
False
Copies whole structure
Copies only the current node
Copies all leaf nodes
None of the above
<?xml version="1.0"?>
<?xml version "1.0"?>
<xml version="1.0">
<xml version "1.0">
True
False
<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"/>
True
False
select
selectNodes
selectNode
selectedNodes
ATTLST
ATTLIST
ATTRIBUTE
LIST
True
False
match=".[centre='MP']"
match=".[centre=MP]"
match=".[@centre='MP']"
match=.[@centre='MP']
.append (newnode)
.appendChild(newnode)
.append(newnode, ,reference_node)
.appendChild(newnode,reference_node)
insert
insertAfter
AddNew
InsertBefore
CDATA
<!-- -- >
//
/* */
<details>
<subject>
<roll>10</roll>
<name>Jayanta</name>
</subject> <subject>
<name>Bipul</name>
<roll>20</roll> </subject>
</details>
True
False
True
False
Top down approach
Bottom up approach
Closed model
True
False
.replace(nodename)
.replaceChild(nodename)
.replace(nodename, reference)
.replaceChild(nodename, reference)
True
False
CDATA
<!-- -- >
//
/* */
Name of object
Name of component
Name of class
None of the above
<AttributeType="centre"/>
<AttributeType="centre">
<attribute type="centre">
<attribute type="centre"/>
<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"/>
XPointer, XPath
XPath, XPointer
XPath, Xlink
XQuery, Xlink
Bottom Up approach
Top Down approach
The color of Hello World will be red
The color of Hello World will be blue
The color of Hello World will be the default color ie. Black
None of the above
True
False
content="textOnly"
content="text"
content="#PCDATA"
content="DATA"
True
False