Document
└─XMLDocument
public class XMLDocument
extends Document
Constructor Summary | |
---|---|
void | __construct(RESTClient client, string uri) Create an XML document object. |
Method Summary | |
---|---|
string | read(string uri, array params) Read an XML document from the database. |
Document | write(string uri, array params) Write an XML document to the database. |
boolean | isValidXML(mixed xml) Check if XML content is valid. |
DOMDocument|null | Get the document as a DOMDocument object. |
Methods inherited from MLPHP\Document | |
---|---|
__construct, delete, deleteMetadata, getConnection, getContent, getContentType, getFileMimeType, getResponse, getURI, hasContent, read, readMetadata, setConnection, setContent, setContentFile, setContentType, setURI, write, writeMetadata |
public void __construct(RESTClient client, string uri)
Create an XML document object.
public string read(string uri, array params)
Read an XML document from the database.
public Document write(string uri, array params)
Write an XML document to the database.
public boolean isValidXML(mixed xml)
Check if XML content is valid.
public DOMDocument|null getAsDOMDocument()
Get the document as a DOMDocument object.
Represents an XML document.