Skip to content

mdz_xml_getAttribute

maxdz-gmbh edited this page Apr 29, 2021 · 4 revisions

Get element attribute from parser.

mdz_bool mdz_xml_getAttribute(
  struct mdz_Xml* pXml,
  const void* pWhereElement,
  size_t nAttributeIndex,
  struct mdz_XmlAttribute* pAttribute);

Parameter Description
pXml pointer to XML-parser instance returned by mdz_xml_create()
pWhereElement pointer to Element (or Text) to get attribute for. Use Element.m_pThis for retrieving attribute of element
nAttributeIndex 0-based index of attribute to get
pAttribute where attribute data should be written
Return Description
mdz_false if pXml == NULL
mdz_false if license is invalid/expired (MDZ_XML_ERROR_LICENSE)
mdz_false if pWhereElement is NULL or pAttribute is NULL (MDZ_XML_ERROR_PARAM)
mdz_false if last parsing failed (MDZ_XML_ERROR_PARSE)
mdz_false if pWhereElement is invalid (MDZ_XML_ERROR_ELEMENT)
mdz_false if nAttributeIndex is out of attributes range (MDZ_XML_ERROR_INDEX)
mdz_false if there is some memory-management problem (MDZ_XML_ERROR_MEMORY)
mdz_true operation succeeded
mdz_xml API Reference is generated using mdzApiRefGenerator.
mdz_xml API Reference is generated using mdzApiRefGenerator.
Clone this wiki locally