Difference Between Element and Node.

Answers were Sorted based on User's Feedback



Difference Between Element and Node...

Answer / prakash kingsly

A node can be an element node, an attribute node, a text
node, or any other of the node types

XML DOM Node Types

NodeType Named Constant
1 ELEMENT_NODE
2 ATTRIBUTE_NODE
3 TEXT_NODE
4 CDATA_SECTION_NODE
5 ENTITY_REFERENCE_NODE
6 ENTITY_NODE
7 PROCESSING_INSTRUCTION_NODE
8 COMMENT_NODE
9 DOCUMENT_NODE
10 DOCUMENT_TYPE_NODE
11 DOCUMENT_FRAGMENT_NODE
12 NOTATION_NODE

Is This Answer Correct ?    12 Yes 3 No

Difference Between Element and Node...

Answer / mohit singh

Hi

Node is like super type of an element. Element is a
specific type of node.

exmaple

Element:
<name>Hari</name>

Node:
<name id="1212" dep="6">Hari</name>


thanks

Is This Answer Correct ?    13 Yes 20 No

Post New Answer

More XML XSLT RSS Interview Questions

What is an xml data?

0 Answers  


what is the difference between xpath document and xml document?

3 Answers   Honeywell,


What is element and attributes in xml?

0 Answers  


What is the usage of xslt <xsl: if> element?

0 Answers  


What is valid xml document? What a well formed xml document?

2 Answers   Astadia,






How do I create an xml return?

0 Answers  


Whether root element is required for XML? If so, how many root elements are required?

0 Answers  


How xml makes your data more available?

0 Answers  


Do you feel that you are a good XSLT programmer?

0 Answers  


Whether graphics can be used in XML? If so, How?

0 Answers  


When constructing an XML DTD, how do you create an external entity reference in an attribute value?

1 Answers  


Does the xml namespaces recommendation define anything except a two-part naming system for element types and attributes?

0 Answers  


Categories