XmlDoc (XmlNodelist function)

From m204wiki
Revision as of 12:13, 10 May 2011 by Goff (talk | contribs) (edits, tags and links)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Get the XmlDoc associated with this nodelist (XmlNodelist class)

XmlDoc This function 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

  1. You can use the XmlDoc function 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