"John O Donovan" <jod_oz_work@myrealbox.com> wrote in message news:u8ZbKG2tEHA.1464@TK2MSFTNGP15.phx.gbl...[color=blue]
> Also can anyone tell me the difference between an XMLNode and an
> XMLElement[/color]
XmlElement inherits from the more abstract XmlNode base type. A document is
composed of a bunch of nodes, nodes can be contained in other nodes, and this
simple structure is what creates the hierarchical (tree-like) form of an XML doc.
Here's the skinny on Node from the source,
http://www.w3.org/TR/2004/REC-DOM-Le...#ID-1950641247
you'll notice that as it's defined by the W3C, Node is an interface. This means
a node is never created directly. Instead, a specialized implementation of a Node
is what's created, and there's are several of these concrete nodes (comments,
processing instructions, CDATA sections, entity references, text, attributes,
etc.)
An element is a special kind of node, and it normally has a string representation
involving angle brackets, like this <name></name> or <name />. Elements can
contain attribute nodes, text nodes, other subordinate element nodes, comment
nodes, CDATA section nodes, entity references, processing instructions ...
The official definition is here,
http://www.w3.org/TR/2004/REC-DOM-Le...l#ID-745549614
In summary, everything is a node. Only tags are elements.
Derek Harmon