|
| __construct ($source, $file=true, $a_mode=0) |
|
| xpath_init () |
|
| free () |
|
| xpath_new_context () |
|
| dump_node ($node) |
|
| validate (&$error) |
|
| create_attribute ($name, $value) |
|
| create_cdata_section ($content) |
|
| create_comment ($data) |
|
| create_element ($name) |
|
| create_text_node ($content) |
|
| document_element () |
|
| dump_file ($filename, $compressionmode=false, $format=false) |
|
| dump_mem ($format=false, $encoding=false) |
|
| get_elements_by_tagname ($name) |
|
| html_dump_mem () |
|
| php4DOMDocument ($source, $file=true) |
|
| xpath_init () |
|
| free () |
|
| xpath_new_context () |
|
| dump_node ($node) |
|
| validate (&$error) |
|
| create_attribute ($name, $value) |
|
| create_cdata_section ($content) |
|
| create_comment ($data) |
|
| create_element ($name) |
|
| create_text_node ($content) |
|
| document_element () |
|
| dump_file ($filename, $compressionmode=false, $format=false) |
|
| dump_mem ($format=false, $encoding=false) |
|
| get_elements_by_tagname ($name) |
|
| html_dump_mem () |
|
Definition at line 104 of file inc.xml5compliance.php.
◆ __construct()
php4DOMDocument::__construct |
( |
|
$source, |
|
|
|
$file = true , |
|
|
|
$a_mode = 0 |
|
) |
| |
Definition at line 109 of file inc.xml5compliance.php.
References $error, $file, $old, $source, and staticxmlerror().
113 set_error_handler(
'staticxmlerror');
114 $old = ini_set(
'html_errors',
false);
117 $this->myDOMDocument =
$source;
118 $this->success =
true;
121 $this->success = @$this->myDOMDocument->load(
$source, $a_mode);
122 $this->success = @$this->myDOMDocument->load(
$source, $a_mode);
124 $this->success = $this->myDOMDocument->loadXML(
$source, $a_mode);
129 ini_set(
'html_errors',
$old);
130 restore_error_handler();
132 if (!$this->success) {
133 $this->error_arr =
staticxmlerror(null, null, null, null, null,
true);
134 foreach ($this->error_arr as
$error) {
135 $error = str_replace(
"DOMDocument::loadXML():",
"", $error);
136 $this->error.= $error .
"<br />";
staticxmlerror($errno, $errstr, $errfile, $errline, $errcontext, $ret=false)
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
◆ create_attribute() [1/2]
php4DOMDocument::create_attribute |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
◆ create_attribute() [2/2]
php4DOMDocument::create_attribute |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
◆ create_cdata_section() [1/2]
php4DOMDocument::create_cdata_section |
( |
|
$content | ) |
|
◆ create_cdata_section() [2/2]
php4DOMDocument::create_cdata_section |
( |
|
$content | ) |
|
◆ create_comment() [1/2]
php4DOMDocument::create_comment |
( |
|
$data | ) |
|
◆ create_comment() [2/2]
php4DOMDocument::create_comment |
( |
|
$data | ) |
|
◆ create_element() [1/2]
php4DOMDocument::create_element |
( |
|
$name | ) |
|
◆ create_element() [2/2]
php4DOMDocument::create_element |
( |
|
$name | ) |
|
◆ create_text_node() [1/2]
php4DOMDocument::create_text_node |
( |
|
$content | ) |
|
◆ create_text_node() [2/2]
php4DOMDocument::create_text_node |
( |
|
$content | ) |
|
◆ document_element() [1/2]
php4DOMDocument::document_element |
( |
| ) |
|
◆ document_element() [2/2]
php4DOMDocument::document_element |
( |
| ) |
|
◆ dump_file() [1/2]
php4DOMDocument::dump_file |
( |
|
$filename, |
|
|
|
$compressionmode = false , |
|
|
|
$format = false |
|
) |
| |
◆ dump_file() [2/2]
php4DOMDocument::dump_file |
( |
|
$filename, |
|
|
|
$compressionmode = false , |
|
|
|
$format = false |
|
) |
| |
◆ dump_mem() [1/2]
php4DOMDocument::dump_mem |
( |
|
$format = false , |
|
|
|
$encoding = false |
|
) |
| |
◆ dump_mem() [2/2]
php4DOMDocument::dump_mem |
( |
|
$format = false , |
|
|
|
$encoding = false |
|
) |
| |
◆ dump_node() [1/2]
php4DOMDocument::dump_node |
( |
|
$node | ) |
|
◆ dump_node() [2/2]
php4DOMDocument::dump_node |
( |
|
$node | ) |
|
◆ free() [1/2]
php4DOMDocument::free |
( |
| ) |
|
◆ free() [2/2]
php4DOMDocument::free |
( |
| ) |
|
◆ get_elements_by_tagname() [1/2]
php4DOMDocument::get_elements_by_tagname |
( |
|
$name | ) |
|
Definition at line 174 of file inc.xml5compliance.php.
References $i, $name, and array.
176 $myDOMNodeList=$this->myDOMDocument->getElementsByTagName(
$name);
179 while ($node=$myDOMNodeList->item(
$i)) {
Create styles array
The data for the language used.
◆ get_elements_by_tagname() [2/2]
php4DOMDocument::get_elements_by_tagname |
( |
|
$name | ) |
|
Definition at line 227 of file inc.xml5compliance.php.
References $i, $name, and array.
229 $myDOMNodeList=$this->myDOMDocument->getElementsByTagName(
$name);
232 while ($node=$myDOMNodeList->item(
$i)) {
Create styles array
The data for the language used.
◆ html_dump_mem() [1/2]
php4DOMDocument::html_dump_mem |
( |
| ) |
|
◆ html_dump_mem() [2/2]
php4DOMDocument::html_dump_mem |
( |
| ) |
|
◆ php4DOMDocument()
php4DOMDocument::php4DOMDocument |
( |
|
$source, |
|
|
|
$file = true |
|
) |
| |
◆ validate() [1/2]
php4DOMDocument::validate |
( |
& |
$error | ) |
|
◆ validate() [2/2]
php4DOMDocument::validate |
( |
& |
$error | ) |
|
Definition at line 165 of file inc.xml5compliance.php.
References $error, $ok, and array.
167 $ok = $this->myDOMDocument->validate();
172 if (function_exists(
"libxml_get_last_error")) {
173 $err = libxml_get_last_error();
175 if (is_object($err)) {
Create styles array
The data for the language used.
◆ xpath_init() [1/2]
php4DOMDocument::xpath_init |
( |
| ) |
|
◆ xpath_init() [2/2]
php4DOMDocument::xpath_init |
( |
| ) |
|
◆ xpath_new_context() [1/2]
php4DOMDocument::xpath_new_context |
( |
| ) |
|
◆ xpath_new_context() [2/2]
php4DOMDocument::xpath_new_context |
( |
| ) |
|
◆ $myDOMDocument
php4DOMDocument::$myDOMDocument |
The documentation for this class was generated from the following file: