API Xml
| Parameter | Default | Description |
| Xml ($mCharset, $mFile, $mXMLCharset, $mStandAlone, $mPutTitle) | ||
| Class constructor, returns a pointer. | ||
| $mCharset | The name of the encoding of the source data. | |
| $mFile | The name of the file to which the XML file will be saved. | |
| $mXMLCharset | UTF-8 | The name of the XML file encoding. |
| $mStandAlone | true | Adds the line standalone="yes" to the file header. |
| $mPutTitle | true | Adds a title to the XML file. |
| StartTag ($mNodeName, $mAttr) | ||
| Adding the opening tag. | ||
| $mNodeName | The name of the tag. | |
| $mAttr | array() | An associative array of tag attributes. |
| PutTag ($mNodeName, $mAttr, $mNodeValue, $mPut) | ||
| Adds a tag with a value. If $mPut = false, does not add but returns a snippet of XML code. | ||
| $mNodeName | The name of the tag. | |
| $mAttr | array() | An associative array of the tag's attributes. |
| $mNodeValue | <blank>. | The value of the tag. |
| $mPut | True | Flag whether to add the tag to the XML file or return a snippet of XML code. |
| CloseTag ($mNodeName) | ||
| Adds a closing tag. | ||
| $mNodeName | The name of the tag. | |
| PutXML ($mCode) | ||
| Adding a ready XML fragment. | ||
| $mCode | XML code fragment. | |
| StartPocket () | ||
| Enable "Pocket" mode; in this case, all subsequent actions will not add data to the XML file, but accumulate it in a specific memory location. | ||
| ClosePocket () | ||
| Turns off the "Pocket" mode. | ||
| PrintPocket () | ||
| Saves the accumulated information from the "Pocket" to an XML file. | ||
| Free () | ||
| Closes the XML-file. | ||

Melbis Shop6