Initializing help system before first use

# xmlattr

Purpose
Get an attribute during parsing of an element.
Synopsis
`procedure xmlattr(ndx:integer, name:text, val:text)`
`procedure xmlattr(aname:string, val:text)`
Arguments

ndx | Attribute index
name | Attribute name (returned by the procedure)
val | Attribute value (returned by the procedure)
aname | Attribute name (provided to the procedure)

Further information
1. This procedure can only be used from the open element function while parsing an XML document with the xmlparse function.
2. With the first syntax, the attribute index ndx is returned by the procedure (both its name and value). This index value must range between 1 and the last index as passed to the open element function. With the second syntax the name of the attribute to retrieve is given to the procedure. An empty string is returned if this attribute is not defined for the current element.
Related topics
xmlparse
Module
mmxml
Parent Topic mmxml

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.