Posts

Showing posts from April, 2010

Difference between XmlNode and XmlElement

XmlElement is derived from XmlNode (XMLElement is a type of XMLNode) and it is having more functionalists than xmlNode XmlElement can be used if you are more specific with XML. Please find all the Node types Node Types The following table lists the different W3C node types, and which node types they may have as children: Node type Description Children Document Represents the entire document (the root-node of the DOM tree) Element (max. one), ProcessingInstruction, Comment, DocumentType DocumentFragment Represents a "lightweight" Document object, which can hold a portion of a document Element, ProcessingInstruction, Comment, Text, CDATASection, EntityReference DocumentType Provides an interface to the entities defined for the document None ProcessingInstruction Represents a processing instruction None EntityReference Represents an entity reference Element, ProcessingInstruction, Comment, Text, CDATASection, EntityRe