xmlGetElementAttribute()

Reads the value of the given attribute into the value reference parameter of the node.

Synopsis

int xmlGetElementAttribute(unsigned doc, unsigned node, string attr, string &value);

Parameters

Parameter Description
doc The document ID returned by e.g. xmlNewDocument().
node Node ID
attr Attribute whose value shall be read.
value Value of the attribute (return parameter)

Return value

0 if the reading process was successful.

If an error occurs, -1 will be returned.

Description

Reads the value of the given attribute into the value reference parameter of the node.

Assignment

XML Control Extension

Availability

CTRL. In every script where the "CtrlXml" extension (#uses "CtrlXml") is used.