
Public Member Functions | |
| getXML () | |
| Retrieve raw XML from content module. | |
| setXML ($xml) | |
| Set the XML content. | |
This content module contains schema-validated Shodor Standard XML 3.0. Invalid XML is not allowed to be stored in this content module, to prevent invalid data from being stored in Snap2.
| SnapContentXml::getXML | ( | ) |
Retrieve raw XML from content module.
Calling getHTML(), which is the normal method to extract content from a content module, will return translated XML => HTML. To get the raw XML, use this method.
| SnapContentXml::setXML | ( | $ | xml | ) |
Set the XML content.
If the XML is invalid, an internal array is used to store the errors. The errors can be retrieved with getXMLError().
| $xml | [string]: valid XML string to put into this content module |
1.5.6