Document: ezcDocumentXmlBase
[ ]
[ Conversion ]
[ ]
[ ]
[ ]
[ ]
Class: ezcDocumentXmlBase
|
A base class for XML based document type handlers. [
source]
Implemented Interfaces
Parents
ezcDocument
|
--ezcDocumentXmlBase
Descendents
Member Variables
|
protected DOMDocument |
$document
DOM tree as the internal representation for the loaded XML. |
Inherited Member Variables
From
ezcDocument:
Method Summary
|
public DOMDocument |
getDomDocument(
)
Get DOMDocument |
|
public void |
loadDomDocument(
$document )
Construct directly from DOMDocument |
|
public void |
loadString(
$string )
Create document from input string |
|
public string |
save(
)
Return document as string |
|
public void |
setDomDocument(
$document )
Set DOMDocument |
Inherited Methods
From
ezcDocument :
Methods
getDomDocument
DOMDocument getDomDocument(
)
Get DOMDocument
Directly return the internally stored DOMDocument object, to spare additional XML parsing overhead.
loadDomDocument
void loadDomDocument(
$document )
Construct directly from DOMDocument
To save execution time this method offers the construction of XML documents directly from a DOM document instance.
Parameters
| Name |
Type |
Description |
$document |
DOMDocument |
|
loadString
void loadString(
string
$string )
Create document from input string
Create a document of the current type handler class and parse it into a usable internal structure.
Parameters
| Name |
Type |
Description |
$string |
string |
|
Redefinition of
Redefined in descendants as
save
string save(
)
Return document as string
Serialize the document to a string an return it.
Redefinition of
Redefined in descendants as
setDomDocument
void setDomDocument(
$document )
Set DOMDocument
Directly set the internally stored DOMDocument object, to spare additional XML parsing overhead. Setting a broken or invalid docbook document is not checked here, ebcause validation would cost too much performace on each set. Be careful what you set here, invalid documents may lead to unpredictable errors.
Parameters
| Name |
Type |
Description |
$document |
DOMDocument |
|
Last updated: Tue, 06 Jan 2009