FirmaSAT Manual

Get XML Attribute

Extracts attribute data from an XML file
Extractos atributo de datos desde un archivo XML.

This will extract the value of the attribute with attributeName specified in the first element matching the given elementName. If no match is found, it will return an error NO_MATCH_ERROR or "!NO MATCH!". The default behaviour is to use the first element found that matches the given element name. More specific elements can be specified using an xpath expression.

Special cases: To test for the existence of an element, specify attributeName="". This will return the (qualified) name of the element if found, or NO_MATCH_ERROR if not found. Setting elementName="" will output the named attribute from the root element of the XML document. Setting both elementName="" and attributeName="" will output the name of the root element itself.

Function index by language

Cmd : ATTRIBUTE Command  
.NET : Sat.GetXmlAttribute Method
VBA/VB6 : satGetXmlAttribute Function  
C (ANSI) : SAT_GetXmlAttributeEx Function  
C++ (STL) : firmasat::Sat::GetXmlAttribute  
[PREV: Query a Certificate...]   [Contents]   [Index]   
   [NEXT: Simplified XPath expressions for the elementName parameter...]

Copyright © 2007-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-04-08T04:07:56Z.