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

How do I configure an xpointer processor?

476


What is the purpose of an xml file?

447


Explain about the actor element?

502


How do I view xml data?

472


How do I convert an xml file to powerpoint?

502






How do you find a url address?

479


Why is xslt used?

465


What are possible ways XML used in j2ee WebApplication.Like storing data in to database and for data transfer .Apart from this any uses.

1909


How do I run an xml file?

458


What is parsing and how do I do it in xml?

455


What happens if your atom feed fails the validation?

445


What is xsl template?

547


Why namespaces are important?

518


When should I use the default xml namespace instead of prefixes?

466


What is a rss feed link?

433