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 / Aashish Kumar

An XML element is a container for an XML tag (with both start and end tags), its attributes, and its content. A node represents a position in the XML tree where data resides or operations can be performed. Every XML element has at least one child node called the root node. Nodes can also represent text, comments, processing instructions, entities, attribute nodes, etc.

Is This Answer Correct ?    0 Yes 0 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 the function of xslt?

1 Answers  


What is xml data binding?

1 Answers  


What is metadata in excel?

1 Answers  


How do I view xml data?

1 Answers  


How xml is used in web application?

1 Answers  


How do I put an rss feed on my podcast on itunes?

1 Answers  


How to validate an atom 1.0 feed file?

1 Answers  


How do you display xml with xslt?

1 Answers  


What is the use of rendering in xsl?

1 Answers  


How does xslt transformation work?

1 Answers  


How do I get my rss feed?

1 Answers  


What compiler switch creates an xml file from the xml comments in the files in an assembly?

1 Answers   Siebel Systems,


Categories