xml

This type represents an XML Object in BoxLang

Xml Methods

childPos(childname=[string], n=[integer])

Gets the position of a child element within an XML document object.

The position, in an XmlChildren array, of the Nth child that has the specified name.

Arguments:

Argument
Type
Required
Default

childname

string

true

null

n

integer

true

null

getNodeType()

Get XML values according to given xPath query

keyExists(key=[any])

Tests whether a key exists in a struct and returns a boolean value

Arguments:

Argument
Type
Required
Default

key

any

true

null

search(xpath=[String], params=[Struct])

Get XML values according to given xPath query

Arguments:

Argument
Type
Required
Default

xpath

String

true

null

params

Struct

false

{}

transform(XSL=[String], parameters=[Struct])

Get XML values according to given xPath query

Arguments:

Argument
Type
Required
Default

XSL

String

true

null

parameters

Struct

false

{}

Examples

Last updated

Was this helpful?