List of XmlNode methods: Difference between revisions
Jump to navigation
Jump to search
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 2: | Line 2: | ||
replaced, so any manual edits will be lost. You've been warned. --> | replaced, so any manual edits will be lost. You've been warned. --> | ||
The following are the available XmlNode class methods. | The following are the available XmlNode class methods. | ||
{{Template:Method list header|class=XmlNode}} | {{Template:Method list header|class=XmlNode}} | ||
<table class="wikitable"> | <table class="wikitable"> | ||
<tr><th>Method</th><th>Description</th></tr> | <tr><th>Method</th><th>Description</th></tr> | ||
<tr><td valign="top">[[AddAttribute (XmlNode function)|AddAttribute]]</td><td valign="top">Add | <tr><td valign="top">[[AddAttribute (XmlNode function)|AddAttribute]]</td><td valign="top">Add an attribute</td></tr> | ||
<tr><td valign="top">[[AddComment (XmlDoc/XmlNode function)|AddComment]]</td><td valign="top">Add Comment to XmlDoc Root or to Element XmlNode</td></tr> | <tr><td valign="top">[[AddComment (XmlDoc/XmlNode function)|AddComment]]</td><td valign="top">Add Comment to XmlDoc Root or to Element XmlNode</td></tr> | ||
<tr><td valign="top">[[AddElement (XmlDoc/XmlNode function)|AddElement]]</td><td valign="top">Add Element to XmlDoc Root or to Element XmlNode</td></tr> | <tr><td valign="top">[[AddElement (XmlDoc/XmlNode function)|AddElement]]</td><td valign="top">Add Element to XmlDoc Root or to Element XmlNode</td></tr> | ||
<tr><td valign="top">[[AddNamespace (XmlNode subroutine)|AddNamespace]]</td><td valign="top">Add namespace declaration | <tr><td valign="top">[[AddNamespace (XmlNode subroutine)|AddNamespace]]</td><td valign="top">Add a namespace declaration</td></tr> | ||
<tr><td valign="top">[[AddPI (XmlDoc/XmlNode function)|AddPI]]</td><td valign="top">Add Processing Instruction to XmlDoc Root or to Element XmlNode</td></tr> | <tr><td valign="top">[[AddPI (XmlDoc/XmlNode function)|AddPI]]</td><td valign="top">Add Processing Instruction to XmlDoc Root or to Element XmlNode</td></tr> | ||
<tr><td valign="top">[[AddSubtree (XmlDoc/XmlNode function)|AddSubtree]]</td><td valign="top">Copy subtree to XmlDoc Root or to Element XmlNode</td></tr> | <tr><td valign="top">[[AddSubtree (XmlDoc/XmlNode function)|AddSubtree]]</td><td valign="top">Copy subtree to XmlDoc Root or to Element XmlNode</td></tr> | ||
<tr><td valign="top">[[AddText (XmlNode function)|AddText]]</td><td valign="top">Add | <tr><td valign="top">[[AddText (XmlNode function)|AddText]]</td><td valign="top">Add a text child element</td></tr> | ||
<tr><td valign="top">[[AppendValue (XmlNode subroutine)|AppendValue]]</td><td valign="top">Append to | <tr><td valign="top">[[AppendValue (XmlNode subroutine)|AppendValue]]</td><td valign="top">Append a value to the child text element</td></tr> | ||
<tr><td valign="top">[[Audit (XmlDoc/XmlNode subroutine)|Audit]]</td><td valign="top">Display selected subtree on audit trail</td></tr> | <tr><td valign="top">[[Audit (XmlDoc/XmlNode subroutine)|Audit]]</td><td valign="top">Display selected subtree on audit trail</td></tr> | ||
<tr><td valign="top">[[DeepCopy (XmlNode function)|DeepCopy]]</td><td valign="top">Deep copy this node</td></tr> | <tr><td valign="top">[[DeepCopy (XmlNode function)|DeepCopy]]</td><td valign="top">Deep copy this node</td></tr> | ||
Line 19: | Line 18: | ||
<tr><td valign="top">[[DeleteSubtree (XmlDoc/XmlNode subroutine)|DeleteSubtree]]</td><td valign="top">Delete selected subtree</td></tr> | <tr><td valign="top">[[DeleteSubtree (XmlDoc/XmlNode subroutine)|DeleteSubtree]]</td><td valign="top">Delete selected subtree</td></tr> | ||
<tr><td valign="top">[[Exists (XmlDoc/XmlNode function)|Exists]]</td><td valign="top">Is XPath result non-empty?</td></tr> | <tr><td valign="top">[[Exists (XmlDoc/XmlNode function)|Exists]]</td><td valign="top">Is XPath result non-empty?</td></tr> | ||
<tr><td valign="top">[[InsertCommentBefore (XmlNode function)|InsertCommentBefore]]</td><td valign="top">Insert a | <tr><td valign="top">[[InsertCommentBefore (XmlNode function)|InsertCommentBefore]]</td><td valign="top">Insert a comment before this node</td></tr> | ||
<tr><td valign="top">[[InsertElementBefore (XmlNode function)|InsertElementBefore]]</td><td valign="top">Insert an | <tr><td valign="top">[[InsertElementBefore (XmlNode function)|InsertElementBefore]]</td><td valign="top">Insert an element before this node</td></tr> | ||
<tr><td valign="top">[[InsertPIBefore (XmlNode function)|InsertPIBefore]]</td><td valign="top">Insert a processing instruction before this node</td></tr> | <tr><td valign="top">[[InsertPIBefore (XmlNode function)|InsertPIBefore]]</td><td valign="top">Insert a processing instruction before this node</td></tr> | ||
<tr><td valign="top">[[InsertSubtreeBefore (XmlNode function)|InsertSubtreeBefore]]</td><td valign="top">Insert | <tr><td valign="top">[[InsertSubtreeBefore (XmlNode function)|InsertSubtreeBefore]]</td><td valign="top">Insert an XmlDoc subtree before this node</td></tr> | ||
<tr><td valign="top">[[InsertTextBefore (XmlNode function)|InsertTextBefore]]</td><td valign="top">Insert | <tr><td valign="top">[[InsertTextBefore (XmlNode function)|InsertTextBefore]]</td><td valign="top">Insert text before this node</td></tr> | ||
<tr><td valign="top">[[Length (XmlDoc/XmlNode function)|Length]]</td><td valign="top">Length of string-value of selected node</td></tr> | <tr><td valign="top">[[Length (XmlDoc/XmlNode function)|Length]]</td><td valign="top">Length of string-value of selected node</td></tr> | ||
<tr><td valign="top">[[LoadFromRecord (XmlDoc/XmlNode subroutine)|LoadFromRecord]]</td><td valign="top">Load fields and fieldgroups from current record</td></tr> | <tr><td valign="top">[[LoadFromRecord (XmlDoc/XmlNode subroutine)|LoadFromRecord]]</td><td valign="top">Load fields and fieldgroups from current record</td></tr> | ||
<tr><td valign="top">[[LoadFromStringlist (XmlDoc/XmlNode function)|LoadFromStringlist]]</td><td valign="top"> | <tr><td valign="top">[[LoadFromStringlist (XmlDoc/XmlNode function)|LoadFromStringlist]]</td><td valign="top">(Obsolete)</td></tr> | ||
<tr><td valign="top">[[LoadXml (XmlDoc/XmlNode function)|LoadXml]]</td><td valign="top">Deserialize text string into XmlDoc Root or into Element XmlNode</td></tr> | <tr><td valign="top">[[LoadXml (XmlDoc/XmlNode function)|LoadXml]]</td><td valign="top">Deserialize text string into XmlDoc Root or into Element XmlNode</td></tr> | ||
<tr><td valign="top">[[LocalName (XmlDoc/XmlNode function)|LocalName]]</td><td valign="top">Name (without prefix) of selected node</td></tr> | <tr><td valign="top">[[LocalName (XmlDoc/XmlNode function)|LocalName]]</td><td valign="top">Name (without prefix) of selected node</td></tr> | ||
<tr><td valign="top">[[Next (XmlNode function)|Next]]</td><td valign="top">Get the next node | <tr><td valign="top">[[Next (XmlNode function)|Next]]</td><td valign="top">Get the next node of the parent</td></tr> | ||
<tr><td valign="top">[[NoEmptyElement (XmlNode property)|NoEmptyElement]]</td><td valign="top"> | <tr><td valign="top">[[NoEmptyElement (XmlNode property)|NoEmptyElement]]</td><td valign="top">(Dis)allow empty-element tags for childless nodes in serialization</td></tr> | ||
<tr><td valign="top">[[Prefix (XmlDoc/XmlNode function)|Prefix]]</td><td valign="top">Prefix part of name of selected node</td></tr> | <tr><td valign="top">[[Prefix (XmlDoc/XmlNode function)|Prefix]]</td><td valign="top">Prefix part of name of selected node</td></tr> | ||
<tr><td valign="top">[[PrefixURI (XmlDoc/XmlNode function)|PrefixURI]]</td><td valign="top">URI of specified prefix in context of selected node</td></tr> | <tr><td valign="top">[[PrefixURI (XmlDoc/XmlNode function)|PrefixURI]]</td><td valign="top">URI of specified prefix in context of selected node</td></tr> | ||
<tr><td valign="top">[[Previous (XmlNode function)|Previous]]</td><td valign="top">Get | <tr><td valign="top">[[Previous (XmlNode function)|Previous]]</td><td valign="top">Get the previous node of the parent</td></tr> | ||
<tr><td valign="top">[[Print (XmlDoc/XmlNode subroutine)|Print]]</td><td valign="top">Print selected subtree</td></tr> | <tr><td valign="top">[[Print (XmlDoc/XmlNode subroutine)|Print]]</td><td valign="top">Print selected subtree</td></tr> | ||
<tr><td valign="top">[[QName (XmlDoc/XmlNode function)|QName]]</td><td valign="top">Name (with prefix, if any) of selected node</td></tr> | <tr><td valign="top">[[QName (XmlDoc/XmlNode function)|QName]]</td><td valign="top">Name (with prefix, if any) of selected node</td></tr> | ||
Line 41: | Line 40: | ||
<tr><td valign="top">[[Serial (XmlDoc/XmlNode function)|Serial]]</td><td valign="top">Serialize selected subtree as string</td></tr> | <tr><td valign="top">[[Serial (XmlDoc/XmlNode function)|Serial]]</td><td valign="top">Serialize selected subtree as string</td></tr> | ||
<tr><td valign="top">[[ToXPathString (XmlDoc/XmlNode function)|ToXPathString]]</td><td valign="top">XPath expression for selected node</td></tr> | <tr><td valign="top">[[ToXPathString (XmlDoc/XmlNode function)|ToXPathString]]</td><td valign="top">XPath expression for selected node</td></tr> | ||
<tr><td valign="top">[[ToXPathStringlist (XmlDoc/XmlNode function)|ToXPathStringlist]]</td><td valign="top">XPath expression for selected node</td></tr> | |||
<tr><td valign="top">[[Trace (XmlDoc/XmlNode subroutine)|Trace]]</td><td valign="top">Display selected subtree on Trace stream</td></tr> | <tr><td valign="top">[[Trace (XmlDoc/XmlNode subroutine)|Trace]]</td><td valign="top">Display selected subtree on Trace stream</td></tr> | ||
<tr><td valign="top">[[Type (XmlDoc/XmlNode function)|Type]]</td><td valign="top">Type of selected node</td></tr> | <tr><td valign="top">[[Type (XmlDoc/XmlNode function)|Type]]</td><td valign="top">Type of selected node</td></tr> | ||
<tr><td valign="top">[[URI (XmlDoc/XmlNode function)|URI]]</td><td valign="top">Namespace URI of name of selected node</td></tr> | <tr><td valign="top">[[URI (XmlDoc/XmlNode function)|URI]]</td><td valign="top">Namespace URI of name of selected node</td></tr> | ||
<tr><td valign="top">[[Validate (XmlDoc/XmlNode function)|Validate]]</td><td valign="top">Validate substring against longstring schema</td></tr> | |||
<tr><td valign="top">[[Value (XmlDoc/XmlNode property)|Value]]</td><td valign="top">String-value of selected node</td></tr> | <tr><td valign="top">[[Value (XmlDoc/XmlNode property)|Value]]</td><td valign="top">String-value of selected node</td></tr> | ||
<tr><td valign="top">[[ValueDefault (XmlDoc/XmlNode function)|ValueDefault]]</td><td valign="top">String-value of selected node (allow empty XPath)</td></tr> | <tr><td valign="top">[[ValueDefault (XmlDoc/XmlNode function)|ValueDefault]]</td><td valign="top">String-value of selected node (allow empty XPath)</td></tr> | ||
<tr><td valign="top">[[XPathNodeID (XmlDoc/XmlNode function)|XPathNodeID]]</td><td valign="top">XPath expression | <tr><td valign="top">[[XPathNodeID (XmlDoc/XmlNode function)|XPathNodeID]]</td><td valign="top">XPath expression for selected node</td></tr> | ||
<tr><td valign="top">[[XmlDoc (XmlNode function)|XmlDoc]]</td><td valign="top">Get the XmlDoc associated with this node</td></tr> | <tr><td valign="top">[[XmlDoc (XmlNode function)|XmlDoc]]</td><td valign="top">Get the XmlDoc associated with this node</td></tr> | ||
</table> | |||
==See also== | |||
<table class="list"><tr> | |||
<td valign="top"><ul style="margin-top:0px;"> | |||
<li>[[XmlDoc class]] | |||
<li>[[XmlNode class]] | |||
<li>[[XmlNodelist class]] | |||
</ul></td> | |||
<td valign="top"><ul style="margin-top:0px;"> | |||
<li>[[List of XmlDoc methods]] | |||
<li>[[List of XmlNodelist methods]] | |||
<li>[[List of XmlDoc API methods]] | |||
</ul></td> | |||
<td valign="top"><ul style="margin-top:0px;"> | |||
<li>[[XmlDoc methods syntax]] | |||
<li>[[XmlNode methods syntax]] | |||
<li>[[XmlNodelist methods syntax]] | |||
</ul></td> | |||
</tr> | |||
</table> | </table> |
Revision as of 02:58, 27 January 2011
The following are the available XmlNode class methods.
Method | Description |
---|---|
AddAttribute | Add an attribute |
AddComment | Add Comment to XmlDoc Root or to Element XmlNode |
AddElement | Add Element to XmlDoc Root or to Element XmlNode |
AddNamespace | Add a namespace declaration |
AddPI | Add Processing Instruction to XmlDoc Root or to Element XmlNode |
AddSubtree | Copy subtree to XmlDoc Root or to Element XmlNode |
AddText | Add a text child element |
AppendValue | Append a value to the child text element |
Audit | Display selected subtree on audit trail |
DeepCopy | Deep copy this node |
DefaultURI | Default URI in scope at selected node |
DeleteSubtree | Delete selected subtree |
Exists | Is XPath result non-empty? |
InsertCommentBefore | Insert a comment before this node |
InsertElementBefore | Insert an element before this node |
InsertPIBefore | Insert a processing instruction before this node |
InsertSubtreeBefore | Insert an XmlDoc subtree before this node |
InsertTextBefore | Insert text before this node |
Length | Length of string-value of selected node |
LoadFromRecord | Load fields and fieldgroups from current record |
LoadFromStringlist | (Obsolete) |
LoadXml | Deserialize text string into XmlDoc Root or into Element XmlNode |
LocalName | Name (without prefix) of selected node |
Next | Get the next node of the parent |
NoEmptyElement | (Dis)allow empty-element tags for childless nodes in serialization |
Prefix | Prefix part of name of selected node |
PrefixURI | URI of specified prefix in context of selected node |
Previous | Get the previous node of the parent |
Print selected subtree | |
QName | Name (with prefix, if any) of selected node |
SelectCount | Number of selected nodes |
SelectNodes | Get list of selected nodes as XmlNodelist |
SelectSingleNode | Get selected node as XmlNode |
Serial | Serialize selected subtree as string |
ToXPathString | XPath expression for selected node |
ToXPathStringlist | XPath expression for selected node |
Trace | Display selected subtree on Trace stream |
Type | Type of selected node |
URI | Namespace URI of name of selected node |
Validate | Validate substring against longstring schema |
Value | String-value of selected node |
ValueDefault | String-value of selected node (allow empty XPath) |
XPathNodeID | XPath expression for selected node |
XmlDoc | Get the XmlDoc associated with this node |