XmlDoc (XmlNode function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (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...")
 
m (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...")
Line 1: Line 1:
<span style="font-size:120%; color:black"><b>xmlDoc object of XmlNode or XmlNodelist</b></span>
{{Template:XmlNode:XmlDoc subtitle}}
[[Category:XmlNode methods|XmlDoc function]]
[[Category:XmlNode methods|XmlDoc function]]
[[Category:XmlDoc API methods]]
[[Category:XmlDoc API methods]]


This function returns the <var>xmlDoc</var> associated with the method object.
This function returns the <var>xmlDoc</var> associated with the method object.
===Syntax===
==Syntax==
  %doc = nod:<var>xmlDoc</var>
{{Template:XmlNode:XmlDoc syntax}}
 
===Syntax terms===
====Syntax Terms====
<dl>
<dl>
<dt>%doc
<dt>%doc
Line 16: Line 15:
</dl>
</dl>


===Usage Notes===
==Usage notes==
<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,
Line 23: Line 22:
</ul>
</ul>


===Examples===
==Examples==
In the following example, the Namespace property is temporarily changed during the execution of a subroutine:
In the following example, the Namespace property is temporarily changed during the execution of a subroutine:
<p class="code">loc subroutine (xmlNode):display
<p class="code">loc subroutine (xmlNode):display

Revision as of 15:13, 23 January 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 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.