Share via


XMLNode Object Members

Word Developer Reference

Represents a single XML element applied to a document.

Methods

  Name Description
Bb258033.methods(en-us,office.12).gif Copy Copies the specified XML element, excluding XML markup, to the Clipboard.
Bb258033.methods(en-us,office.12).gif Cut Removes the specified XML element from the document and places it on the Clipboard.
Bb258033.methods(en-us,office.12).gif Delete Deletes the specified XML element from an XML document.
Bb258033.methods(en-us,office.12).gif RemoveChild Removes a child element from the specified element.
Bb258033.methods(en-us,office.12).gif SelectNodes Returns an XMLNodes collection that represents all the child elements that match the XPath parameter, in the order in which they appear within the specified XML element.
Bb258033.methods(en-us,office.12).gif SelectSingleNode Returns an XMLNode object that represents the first child element that matches the XPath parameter within the specified XML element.
Bb258033.methods(en-us,office.12).gif SetValidationError Changes the validation error text displayed to a user for a specified node and forces Word to report a node as invalid.
Bb258033.methods(en-us,office.12).gif Validate Validates an individual XML element against the XML schemas that are attached to a document.

Properties

  Name Description
Bb258033.properties(en-us,office.12).gif Application Returns an Application object that represents the Microsoft Word application.
Bb258033.properties(en-us,office.12).gif Attributes Returns an XMLNodes collection that represents the attributes for the specified element.
Bb258033.properties(en-us,office.12).gif BaseName Returns a String that represents the name of the element without any prefix.
Bb258033.properties(en-us,office.12).gif ChildNodes Returns an XMLNodes collection that represents the child elements of a specified element.
Bb258033.properties(en-us,office.12).gif ChildNodeSuggestions Returns an XMLChildNodeSuggestions collection that represents the list of child elements for a specified element.
Bb258033.properties(en-us,office.12).gif Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
Bb258033.properties(en-us,office.12).gif FirstChild Returns a DiagramNode object that represents the first child node of a parent node. Read-only.
Bb258033.properties(en-us,office.12).gif HasChildNodes Returns a Boolean that represents whether an XML node has child nodes. Read-only.
Bb258033.properties(en-us,office.12).gif LastChild Returns an XMLNode object that represents the last child node of an XML element.
Bb258033.properties(en-us,office.12).gif Level Returns a WdXMLNodeLevel constant that represents whether an XML element is part of a paragraph, is a paragraph, or is contained within a table cell or contains a table row. Read-only.
Bb258033.properties(en-us,office.12).gif NamespaceURI Returns a String that represents the Uniform Resource Identifier (URI) of the schema namespace for the specified object. Read-only.
Bb258033.properties(en-us,office.12).gif NextSibling Returns an XMLNode object that represents the next element in the document that is at the same level as the specified element.
Bb258033.properties(en-us,office.12).gif NodeType Returns a WdXMLNodeType constant that represents the type of node.
Bb258033.properties(en-us,office.12).gif NodeValue Returns or sets a String that represents the value of an XML element. Read/write.
Bb258033.properties(en-us,office.12).gif OwnerDocument Returns a Document object that represents the parent document of the specified XML element.
Bb258033.properties(en-us,office.12).gif Parent Returns an Object that represents the parent object of the specified XMLNode object.
Bb258033.properties(en-us,office.12).gif ParentNode Returns an XMLNode object that represents the parent element of the specified element.
Bb258033.properties(en-us,office.12).gif PlaceholderText Sets or returns a String that represents the text displayed for an element that contains no text.
Bb258033.properties(en-us,office.12).gif PreviousSibling Returns an XMLNode object that represents the previous element in the document that is at the same level as the specified element.
Bb258033.properties(en-us,office.12).gif Range Returns a Range object that represents the portion of a document that is contained in the specified object. Read-only.
Bb258033.properties(en-us,office.12).gif SmartTag Returns a SmartTag object that represents the smart tag associated with an XML element.
Bb258033.properties(en-us,office.12).gif Text Returns or sets the text contained within the XML element. Read/write String.
Bb258033.properties(en-us,office.12).gif ValidationErrorText Returns a String that represents the description for a validation error on an XMLNode object.
Bb258033.properties(en-us,office.12).gif ValidationStatus Returns a WdXMLValidationStatus constant that represents whether an element or attribute is valid according to the attached schema.
Bb258033.properties(en-us,office.12).gif WordOpenXML Returns a String that represents the XML for the node in the Microsoft Office Word Open XML format. Read-only.
Bb258033.properties(en-us,office.12).gif XML Returns a String that represents the text, with or without XML markup, that is contained within an XML node. Read-only.