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.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! 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 AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm