XmlDoc (XmlNode function): Difference between revisions
Jump to navigation
Jump to search
m (→Examples) |
m (→Usage notes) |
||
Line 15: | Line 15: | ||
<ul> | <ul> | ||
<li>The <var>xmlDoc</var> function can be used when it is necessary, for example, | <li>The <var>xmlDoc</var> function can be used when it is necessary, for example, | ||
to get or set <var> | to get or set <var>XmlDoc</var> properties | ||
(such as | (such as [[Namespace (XmlDoc property)|Namespace]]) given an <var>XmlNode</var> or <var>XmlNodelist</var>. | ||
</ul> | </ul> | ||
Revision as of 16:48, 3 March 2011
Get the XmlDoc associated with this node (XmlNode class)
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. |
---|---|
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) given an XmlNode or XmlNodelist.
Examples
In the following example, the Namespace property is temporarily changed during the execution of a local subroutine:
local 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.