XMLElement

In BI#, the XMLElement data type represents a single element of an XML document. It has a name, some content, a list of attributes, and a list of child elements. To create new XMLElement objects, use the XMLCreateElement function:

XMLElement element = XMLCreateElement(“root”);
XMLElement child = XMLCreateElement(“child”);

To set an element’s content, use the XMLSetContent function:

XMLSetContent(child, “The child’s content.”);

With the XMLSetAttributeValue function you can set an attribute’s value. If the attribute does not exist, it is created automatically:

XMLSetAttributeValue(child, “attributeName”, “attributeValue”);

To append new child elements to an element, use the XMLAddElement function:

XMLAddElement(element, child);