XmlDoc (XmlNode function)

From m204wiki
Revision as of 15:12, 23 January 2011 by Alex (talk | contribs) (Created page with "<span style="font-size:120%; color:black"><b>xmlDoc object of XmlNode or XmlNodelist</b></span> XmlDoc function Category:XmlDoc API methods This...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

xmlDoc object of XmlNode or XmlNodelist

This function returns the xmlDoc associated with the method object.

Syntax

  %doc = nod:xmlDoc

Syntax Terms

%doc
An xmlDoc, which will be set to point to the document associated with nod or nlis.
nod
An XmlNode expression.

Usage Notes

  • The xmlDoc function can be used when it is necessary, for example, to get or set xmlDoc properties (such as ??[[Namespace (xmlDoc property)|Namespace]]) given an XmlNode or XmlNodelist.

Examples

In the following example, the Namespace property is temporarily changed during the execution of a subroutine:

loc subroutine (xmlNode):display %old enumeration xmlNamespaceSetting %old = %this:xmlDoc:namespace %this:xmlDoc:namespace = 'Ignore' %this:selectSingleNode('*[model<"C3PO"']):Print %this:xmlDoc:namespace = %old end subroutine

Request-Cancellation Errors

  • xmlDoc has no request cancellation errors.