Web Connector 25.2
Web Connector Help

# LuaXmlNode Methods

A `LuaXmlNode` object represents a single node in an XML document.

If you have a `LuaXmlNode` object called `node` you can call its methods using the '`:`' operator. For example:

    node:name()

Method | Description
--- | ---
attr | Returns the first LuaXmlAttribute attribute object for this element.
content | Returns the content (text element) of the XML node.
firstChild | Returns a LuaXmlNode that is the first child of this node.
lastChild | Returns a LuaXmlNode that is the last child of this node.
name | Returns the name of the XML node.
next | Returns a LuaXmlNode that is the next sibling of this node.
nodePath | Returns the XML path to the node that can be used in another `XPath` query.
parent | Returns the parent LuaXmlNode of the node.
prev | Returns a LuaXmlNode that is the previous sibling of this node.
type | Returns the type of the node as a string.

Copyright 2025 Open Text
Version 25.2 | Last updated April 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Web Connector 25.2

Topic Title: LuaXmlNode Methods