<!ELEMENT name (PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT name (#DATA)>
<!ELEMENT name (DATA)>
B. <!ELEMENT name (#PCDATA)>
dataType
type
dt:type
data:type
True
False
CDATA
<!-- -- >
//
/* */
dt:type="list"
dt:type="enumeration"
dt:type="enum"
dt:type="values"
True
False
1.0
2.0
3.0
4.0
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
True
False
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"/>
content="textOnly"
content="text"
content="#PCDATA"
content="DATA"
Bottom Up approach
Top Down approach
...............…/nodename[0]
..................…/nodename[1]
.................…/nodename[0].nodes
..................…/nodename[1].nodes
insert
insertAfter
AddNew
InsertBefore
Order-by="name"
Order-by="+name"
Order-by="-name"
Order-by="name" desc
<AttributeType="centre"/>
<AttributeType="centre">
<attribute type="centre">
<attribute type="centre"/>
Name of object
Name of component
Name of class
None of the above
External, Inline
Internal, External
Internal, External, Inline
External only
&attribute name;
&attribute name
attribute name
attribute name;
.append (newnode)
.appendChild(newnode)
.append(newnode, ,reference_node)
.appendChild(newnode,reference_node)
True
False
True
False
match=".[centre='MP']"
match=".[centre=MP]"
match=".[@centre='MP']"
match=.[@centre='MP']
.replace(nodename)
.replaceChild(nodename)
.replace(nodename, reference)
.replaceChild(nodename, reference)
<?xml version="1.0"?>
<?xml version "1.0"?>
<xml version="1.0">
<xml version "1.0">
.removeChild(nodename)
.remove(nodename)
.removeChild(nodename, reference)
.remove(nodename, reference)
select
selectNodes
selectNode
selectedNodes
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"/>