Open topic with navigation

# 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 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm