githubEdit

xml

This type represents an XML Object in BoxLang

Xml Methods

chevron-rightbxDump(label=[string], top=[numeric], expand=[boolean], abort=[boolean], output=[string], format=[string], showUDFs=[boolean])hashtag

Outputs the contents of a variable (simple or complex) of any type for debugging purposes to a specific output location.

, The available ,,output,, locations are: - ,,buffer,,: The output is written to the buffer, which is the default location. If running on a web server, the output is written to the browser. - ,,console,,: The output is printed to the System console. - ,,Absolute File Path,, The output is written to a file with the specified absolute file path. ,

,

The output format can be either HTML or plain text.

The default format is HTML if the output location is the buffer or a web server or a file, otherwise it is plain text for the console.

Arguments:

Argument
Type
Required
Default

label

string

false

null

top

numeric

false

null

expand

boolean

false

true

abort

boolean

false

false

output

string

false

null

format

string

false

null

showUDFs

boolean

false

true

chevron-rightchildPos(childname=[string], n=[integer])hashtag

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

chevron-rightclone()hashtag

Clone this XML object

chevron-rightgetNodeType()hashtag

Get XML values according to given xPath query

chevron-rightkeyExists(key=[any])hashtag

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

Arguments:

Argument
Type
Required
Default

key

any

true

null

chevron-rightsearch(xpath=[String], params=[Struct])hashtag

Get XML values according to given xPath query

Arguments:

Argument
Type
Required
Default

xpath

String

true

null

params

Struct

false

{}

chevron-righttransform(XSL=[String], parameters=[Struct])hashtag

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?