XmlDoc (XmlNodelist function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 28: Line 28:
</p>
</p>


==Request-Cancellation Errors/==
==Request-cancellation errors==
<ul>
<ul>
<li><var>XmlDoc</var> has no request cancellation errors.
<li><var>XmlDoc</var> has no request cancellation errors.

Revision as of 19:05, 6 June 2011

Get the XmlDoc associated with this nodelist (XmlNodelist class)

XmlDoc returns the xmlDoc associated with the method object XmlNodelist.

Syntax

%doc = nodl:XmlDoc

Syntax terms

%doc An XmlDoc, which will be set to point to the document associated with nodl.
nodl An XmlNodeList expression.

Usage notes

  • The xmlDoc function can be used when it is necessary to get or set XmlDoc properties (such as Namespace) given an xmlNodelist.

Examples

You can use XmlDoc to access the Root node (and then, optionally, to use an Xpath expression which is in effect an absolute expression) with an empty xmlNodelist, as in the following example:

local subroutine (xmlNodelist):display if %this:count eq 0 then printText Nodelist empty, here is the document: %this:xmlDoc:print else ... end if

Request-cancellation errors

  • XmlDoc has no request cancellation errors.

See also