Difference Between Element and Node.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

State some advantages of xml?

557


Is html xml?

462


What are the ways to add styles to html?

447


What is XSLT data model?

547


How can I declare xml namespaces so that all elements and attributes are in their scope?

481






What is xml file in android?

458


What is the icon for rss and atom?

505


Define xml signature?

500


What is a file feed?

452


What is namespace in xslt?

478


Explain about xml canonicalization?

517


Can you execute a xml?

442


Can xml tags have numbers?

464


Which are the main features of xml?

459


Does anyone use xslt anymore?

488