W3C DOM Node Types

Microsoft XML Diff

Microsoft XML Diff 1.0 and XML Patch 1.0

W3C DOM Node Types

The following table shows the node type and its numeric equivalent. These numeric values are used in the XDL when describing what type of node has been added in an xd:add element.

Node type Value
Element 1
Attribute 2
Text 3
CDATA 4
EntityReference 5
Entity 6
ProcessingInstruction 7
Comment 8
Document 9
DocumentType 10
DocumentFragment 11
Notation 12
Whitespace 13
SignificantWhitespace 14
XmlDeclaration 18

Note   Values 15 and 16 are EndElement and EndEntity, respectively. These are part of the Microsoft DOM but not W3C DOM.

See Also

XML Diff Functionality | XML Diff Language (Diffgram) | Path Descriptors | XmlDiff Operation xd:node | XmlDiff Operation xd:add | Adding Fragments and Multiple Nodes | Copying an Existing Node or Fragment | Extended Operations | XmlDiff Operation xd:remove | XmlDiff Operation xd:change | Example of a Diffgram | XmlDiff Class

© 2002 Microsoft Corporation. All rights reserved.