ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
php4DOMDocument Class Reference
+ Inheritance diagram for php4DOMDocument:
+ Collaboration diagram for php4DOMDocument:

Public Member Functions

 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 ()
 
 php4DOMDocument ($mode=DOMXML_LOAD_PARSING)
 
 add_root ($name)
 
 create_attribute ($name, $value)
 
 create_cdata_section ($content)
 
 create_comment ($data)
 
 create_element ($name)
 
 create_element_ns ($uri, $name, $prefix=null)
 
 create_entity_reference ($content)
 
 create_processing_instruction ($target, $data='')
 
 create_text_node ($content)
 
 document_element ()
 
 dump_file ($filename, $compressionmode=false, $format=false)
 
 dump_mem ($format=false, $encoding=false)
 
 free ()
 
 get_element_by_id ($id)
 
 get_elements_by_tagname ($name)
 
 html_dump_mem ()
 
 root ()
 
 xinclude ()
 
 xpath_new_context ()
 
 php4DOMDocument ($filename='')
 
 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_element_by_id ($id)
 
 get_elements_by_tagname ($name)
 
 html_dump_mem ()
 
 root ()
 
 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 ()
 
- Public Member Functions inherited from php4DOMNode
 php4DOMNode ($aDomNode)
 
 append_child ($newnode)
 
 replace_node ($newnode)
 
 append_sibling ($newnode)
 
 attributes ()
 
 child_nodes ()
 
 children ()
 
 unlink_node ($aDomNode="")
 
 clone_node ($deep=false)
 
 first_child ()
 
 get_content ()
 
 has_attributes ()
 
 has_child_nodes ()
 
 insert_before ($newnode, $refnode)
 
 last_child ()
 
 next_sibling ()
 
 node_name ($a_local=false)
 
 node_type ()
 
 node_value ()
 
 parent_node ()
 
 previous_sibling ()
 
 remove_child ($oldchild)
 
 replace_child ($oldnode, $newnode)
 
 set_content ($text)
 
 php4DOMNode ($aDomNode, $aOwnerDocument)
 
 __get ($name)
 
 add_child ($newnode)
 
 add_namespace ($uri, $prefix)
 
 append_child ($newnode)
 
 append_sibling ($newnode)
 
 attributes ()
 
 child_nodes ()
 
 children ()
 
 clone_node ($deep=false)
 
 dump_node ($node=null)
 
 first_child ()
 
 get_content ()
 
 has_attributes ()
 
 has_child_nodes ()
 
 insert_before ($newnode, $refnode)
 
 is_blank_node ()
 
 last_child ()
 
 new_child ($name, $content)
 
 next_sibling ()
 
 node_name ()
 
 node_type ()
 
 node_value ()
 
 owner_document ()
 
 parent_node ()
 
 prefix ()
 
 previous_sibling ()
 
 remove_child ($oldchild)
 
 replace_child ($newnode, $oldnode)
 
 replace_node ($newnode)
 
 set_content ($text)
 
 set_namespace ($uri, $prefix=null)
 
 unlink_node ()
 
 php4DOMNode ($aDomNode, $aOwnerDocument)
 
 __get ($name)
 
 append_child ($newnode)
 
 append_sibling ($newnode)
 
 attributes ()
 
 child_nodes ()
 
 children ()
 
 clone_node ($deep=false)
 
 first_child ()
 
 get_content ()
 
 has_attributes ()
 
 has_child_nodes ()
 
 insert_before ($newnode, $refnode)
 
 is_blank_node ()
 
 last_child ()
 
 new_child ($name, $content)
 
 next_sibling ()
 
 node_name ()
 
 node_type ()
 
 node_value ()
 
 owner_document ()
 
 parent_node ()
 
 prefix ()
 
 previous_sibling ()
 
 remove_child ($oldchild)
 
 replace_child ($oldnode, $newnode)
 
 set_content ($text)
 
 php4DOMNode ($aDomNode)
 
 append_child ($newnode)
 
 replace_node ($newnode)
 
 append_sibling ($newnode)
 
 attributes ()
 
 child_nodes ()
 
 children ()
 
 unlink_node ($aDomNode="")
 
 clone_node ($deep=false)
 
 first_child ()
 
 get_content ()
 
 has_attributes ()
 
 has_child_nodes ()
 
 insert_before ($newnode, $refnode)
 
 last_child ()
 
 next_sibling ()
 
 node_name ()
 
 node_type ()
 
 node_value ()
 
 parent_node ()
 
 previous_sibling ()
 
 remove_child ($oldchild)
 
 replace_child ($oldnode, $newnode)
 
 set_content ($text)
 

Data Fields

 $myDOMDocument
 
- Data Fields inherited from php4DOMNode
 $myDOMNode
 
 $myOwnerDocument
 

Additional Inherited Members

- Static Public Member Functions inherited from php4DOMNode
static _newDOMElement ($aDOMNode, $aOwnerDocument)
 
- Protected Member Functions inherited from php4DOMNode
 _importNode ($newnode)
 

Detailed Description

Definition at line 100 of file inc.xml5compliance.php.

Member Function Documentation

◆ add_root()

php4DOMDocument::add_root (   $name)

Definition at line 119 of file domxml-php4-to-php5.php.

120 {
121 if ($this->myDOMNode->hasChildNodes()) $this->myDOMNode->removeChild($this->myDOMNode->firstChild);
122 return new php4DOMElement($this->myDOMNode->appendChild($this->myDOMNode->createElement($name)),$this->myOwnerDocument);
123 }

◆ create_attribute() [1/4]

php4DOMDocument::create_attribute (   $name,
  $value 
)

Definition at line 190 of file inc.xml5compliance.php.

191 {
192 $myAttr=$this->myDOMDocument->createAttribute($name);
193 $myAttr->value=$value;
194
195 return new php4DOMAttr($myAttr);
196 }

◆ create_attribute() [2/4]

php4DOMDocument::create_attribute (   $name,
  $value 
)

Definition at line 124 of file domxml-php4-to-php5.php.

125 {
126 $myAttr=$this->myDOMNode->createAttribute($name);
127 $myAttr->value=htmlspecialchars($value,ENT_QUOTES);
128 return new php4DOMAttr($myAttr,$this);
129 }

◆ create_attribute() [3/4]

php4DOMDocument::create_attribute (   $name,
  $value 
)

Definition at line 110 of file domxml-php4-php5.php.

111 {
112echo "-B";
113 $myAttr=$this->myDOMNode->createAttribute($name);
114 $myAttr->value=$value;
115 return new php4DOMAttr($myAttr,$this);
116 }

◆ create_attribute() [4/4]

php4DOMDocument::create_attribute (   $name,
  $value 
)

Definition at line 135 of file inc.xml5compliance.php.

136 {
137 $myAttr=$this->myDOMDocument->createAttribute($name);
138 $myAttr->value=$value;
139
140 return new php4DOMAttr($myAttr);
141 }

◆ create_cdata_section() [1/4]

php4DOMDocument::create_cdata_section (   $content)

Definition at line 198 of file inc.xml5compliance.php.

199 {
200 return new php4DOMCDATASection($this->myDOMDocument->createCDATASection($content));
201 }

◆ create_cdata_section() [2/4]

php4DOMDocument::create_cdata_section (   $content)

Definition at line 130 of file domxml-php4-to-php5.php.

130{return new php4DOMNode($this->myDOMNode->createCDATASection($content),$this);}
php4DOMNode($aDomNode)

References php4DOMNode\php4DOMNode().

+ Here is the call graph for this function:

◆ create_cdata_section() [3/4]

php4DOMDocument::create_cdata_section (   $content)

Definition at line 119 of file domxml-php4-php5.php.

120 {
121echo "-C";
122 return new php4DOMNode($this->myDOMNode->createCDATASection($content),$this);
123 }

References php4DOMNode\php4DOMNode().

+ Here is the call graph for this function:

◆ create_cdata_section() [4/4]

php4DOMDocument::create_cdata_section (   $content)

Definition at line 143 of file inc.xml5compliance.php.

144 {
145 return new php4DOMCDATASection($this->myDOMDocument->createCDATASection($content));
146 }

◆ create_comment() [1/4]

php4DOMDocument::create_comment (   $data)

Definition at line 203 of file inc.xml5compliance.php.

204 {
205 return new php4DOMElement($this->myDOMDocument->createComment($data));
206 }
$data

References $data.

◆ create_comment() [2/4]

php4DOMDocument::create_comment (   $data)

Definition at line 131 of file domxml-php4-to-php5.php.

131{return new php4DOMNode($this->myDOMNode->createComment($data),$this);}

References $data, and php4DOMNode\php4DOMNode().

+ Here is the call graph for this function:

◆ create_comment() [3/4]

php4DOMDocument::create_comment (   $data)

Definition at line 126 of file domxml-php4-php5.php.

127 {
128echo "-D";
129 return new php4DOMNode($this->myDOMNode->createComment($data),$this);
130 }

References $data, and php4DOMNode\php4DOMNode().

+ Here is the call graph for this function:

◆ create_comment() [4/4]

php4DOMDocument::create_comment (   $data)

Definition at line 148 of file inc.xml5compliance.php.

149 {
150 return new php4DOMElement($this->myDOMDocument->createComment($data));
151 }

References $data.

◆ create_element() [1/4]

php4DOMDocument::create_element (   $name)

Definition at line 208 of file inc.xml5compliance.php.

209 {
210 return new php4DOMElement($this->myDOMDocument->createElement($name));
211 }

◆ create_element() [2/4]

php4DOMDocument::create_element (   $name)

Definition at line 132 of file domxml-php4-to-php5.php.

132{return new php4DOMElement($this->myDOMNode->createElement($name),$this);}

◆ create_element() [3/4]

php4DOMDocument::create_element (   $name)

Definition at line 133 of file domxml-php4-php5.php.

134 {
135echo "-E";
136 return new php4DOMElement($this->myDOMNode->createElement($name),$this);
137 }

◆ create_element() [4/4]

php4DOMDocument::create_element (   $name)

Definition at line 153 of file inc.xml5compliance.php.

154 {
155 return new php4DOMElement($this->myDOMDocument->createElement($name));
156 }

◆ create_element_ns()

php4DOMDocument::create_element_ns (   $uri,
  $name,
  $prefix = null 
)

Definition at line 133 of file domxml-php4-to-php5.php.

134 {
135 if ($prefix==null) $prefix=$this->myDOMNode->lookupPrefix($uri);
136 if (($prefix==null)&&(($this->myDOMNode->documentElement==null)||(!$this->myDOMNode->documentElement->isDefaultNamespace($uri)))) $prefix='a'.sprintf('%u',crc32($uri));
137 return new php4DOMElement($this->myDOMNode->createElementNS($uri,$prefix==null ? $name : $prefix.':'.$name),$this);
138 }

◆ create_entity_reference()

php4DOMDocument::create_entity_reference (   $content)

Definition at line 139 of file domxml-php4-to-php5.php.

139{return new php4DOMNode($this->myDOMNode->createEntityReference($content),$this);} //By Walter Ebert 2007-01-22

References php4DOMNode\php4DOMNode().

+ Here is the call graph for this function:

◆ create_processing_instruction()

php4DOMDocument::create_processing_instruction (   $target,
  $data = '' 
)

Definition at line 140 of file domxml-php4-to-php5.php.

140{return new php4DomProcessingInstruction($this->myDOMNode->createProcessingInstruction($target,$data),$this);}

References $data.

◆ create_text_node() [1/4]

php4DOMDocument::create_text_node (   $content)

Definition at line 213 of file inc.xml5compliance.php.

214 {
215 return new php4DOMNode($this->myDOMDocument->createTextNode($content));
216 }

References php4DOMNode\php4DOMNode().

+ Here is the call graph for this function:

◆ create_text_node() [2/4]

php4DOMDocument::create_text_node (   $content)

Definition at line 141 of file domxml-php4-to-php5.php.

141{return new php4DOMText($this->myDOMNode->createTextNode($content),$this);}

◆ create_text_node() [3/4]

php4DOMDocument::create_text_node (   $content)

Definition at line 139 of file domxml-php4-php5.php.

140 {
141echo "-F";
142 return new php4DOMNode($this->myDOMNode->createTextNode($content),$this);
143 }

References php4DOMNode\php4DOMNode().

+ Here is the call graph for this function:

◆ create_text_node() [4/4]

php4DOMDocument::create_text_node (   $content)

Definition at line 158 of file inc.xml5compliance.php.

159 {
160 return new php4DOMNode($this->myDOMDocument->createTextNode($content));
161 }

References php4DOMNode\php4DOMNode().

+ Here is the call graph for this function:

◆ document_element() [1/4]

php4DOMDocument::document_element ( )

Definition at line 218 of file inc.xml5compliance.php.

219 {
220 return new php4DOMElement($this->myDOMDocument->documentElement);
221 }

◆ document_element() [2/4]

php4DOMDocument::document_element ( )

Definition at line 142 of file domxml-php4-to-php5.php.

142{ return parent::_newDOMElement($this->myDOMNode->documentElement,$this);}

◆ document_element() [3/4]

php4DOMDocument::document_element ( )

Definition at line 145 of file domxml-php4-php5.php.

146 {
147echo "-G";
148 return new php4DOMElement($this->myDOMNode->documentElement,$this);
149 }

◆ document_element() [4/4]

php4DOMDocument::document_element ( )

Definition at line 163 of file inc.xml5compliance.php.

164 {
165 return new php4DOMElement($this->myDOMDocument->documentElement);
166 }

◆ dump_file() [1/4]

php4DOMDocument::dump_file (   $filename,
  $compressionmode = false,
  $format = false 
)

Definition at line 223 of file inc.xml5compliance.php.

224 {
225 return $this->myDOMDocument->save($filename);
226 }
$filename
Definition: buildRTE.php:89

References $filename.

◆ dump_file() [2/4]

php4DOMDocument::dump_file (   $filename,
  $compressionmode = false,
  $format = false 
)

Definition at line 143 of file domxml-php4-to-php5.php.

144 {
145 $format0=$this->myDOMNode->formatOutput;
146 $this->myDOMNode->formatOutput=$format;
147 $res=$this->myDOMNode->save($filename);
148 $this->myDOMNode->formatOutput=$format0;
149 return $res;
150 }

References $filename, and $res.

◆ dump_file() [3/4]

php4DOMDocument::dump_file (   $filename,
  $compressionmode = false,
  $format = false 
)

Definition at line 151 of file domxml-php4-php5.php.

152 {
153echo "-H";
154 return $this->myDOMNode->save($filename);
155 }

References $filename.

◆ dump_file() [4/4]

php4DOMDocument::dump_file (   $filename,
  $compressionmode = false,
  $format = false 
)

Definition at line 168 of file inc.xml5compliance.php.

169 {
170 return $this->myDOMDocument->save($filename);
171 }

References $filename.

◆ dump_mem() [1/4]

php4DOMDocument::dump_mem (   $format = false,
  $encoding = false 
)

Definition at line 228 of file inc.xml5compliance.php.

229 {
230 return $this->myDOMDocument->saveXML();
231 }

◆ dump_mem() [2/4]

php4DOMDocument::dump_mem (   $format = false,
  $encoding = false 
)

Definition at line 151 of file domxml-php4-to-php5.php.

152 {
153 $format0=$this->myDOMNode->formatOutput;
154 $this->myDOMNode->formatOutput=$format;
155 $encoding0=$this->myDOMNode->encoding;
156 if ($encoding) $this->myDOMNode->encoding=$encoding;
157 $dump=$this->myDOMNode->saveXML();
158 $this->myDOMNode->formatOutput=$format0;
159 if ($encoding) $this->myDOMNode->encoding= $encoding0=='' ? 'UTF-8' : $encoding0; //UTF-8 is XML default encoding
160 return $dump;
161 }

◆ dump_mem() [3/4]

php4DOMDocument::dump_mem (   $format = false,
  $encoding = false 
)

Definition at line 157 of file domxml-php4-php5.php.

158 {
159echo "-I";
160 return $this->myDOMNode->saveXML();
161 }

◆ dump_mem() [4/4]

php4DOMDocument::dump_mem (   $format = false,
  $encoding = false 
)

Definition at line 173 of file inc.xml5compliance.php.

174 {
175 return $this->myDOMDocument->saveXML();
176 }

◆ dump_node() [1/2]

php4DOMDocument::dump_node (   $node)

Reimplemented from php4DOMNode.

Definition at line 162 of file inc.xml5compliance.php.

163 {
164 $str = $this->myDOMDocument->saveXML($node->myDOMNode);
165 return $str;
166 }

◆ dump_node() [2/2]

php4DOMDocument::dump_node (   $node)

Reimplemented from php4DOMNode.

Definition at line 118 of file inc.xml5compliance.php.

119 {
120 $str = $this->myDOMDocument->saveXML($node->myDOMNode);
121 return $str;
122 }

◆ free() [1/3]

php4DOMDocument::free ( )

Definition at line 150 of file inc.xml5compliance.php.

151 {
152 unset($this->myDOMDocument);
153 }

◆ free() [2/3]

php4DOMDocument::free ( )

Definition at line 162 of file domxml-php4-to-php5.php.

163 {
164 if ($this->myDOMNode->hasChildNodes()) $this->myDOMNode->removeChild($this->myDOMNode->firstChild);
165 $this->myDOMNode=null;
166 $this->myOwnerDocument=null;
167 }

◆ free() [3/3]

php4DOMDocument::free ( )

Definition at line 106 of file inc.xml5compliance.php.

107 {
108 unset($this->myDOMDocument);
109 }

◆ get_element_by_id() [1/2]

php4DOMDocument::get_element_by_id (   $id)

Definition at line 168 of file domxml-php4-to-php5.php.

168{return parent::_newDOMElement($this->myDOMNode->getElementById($id),$this);}

◆ get_element_by_id() [2/2]

php4DOMDocument::get_element_by_id (   $id)

Definition at line 163 of file domxml-php4-php5.php.

164 {
165echo "-J";
166 return new php4DOMElement($this->myDOMNode->getElementById($id),$this);
167 }

◆ get_elements_by_tagname() [1/4]

php4DOMDocument::get_elements_by_tagname (   $name)

Definition at line 233 of file inc.xml5compliance.php.

234 {
235 $myDOMNodeList=$this->myDOMDocument->getElementsByTagName($name);
236 $nodeSet=array();
237 $i=0;
238 while ($node=$myDOMNodeList->item($i))
239 {
240 $nodeSet[]=new php4DOMElement($node);
241 $i++;
242 }
243
244 return $nodeSet;
245 }

◆ get_elements_by_tagname() [2/4]

php4DOMDocument::get_elements_by_tagname (   $name)

Definition at line 169 of file domxml-php4-to-php5.php.

170 {
171 $myDOMNodeList=$this->myDOMNode->getElementsByTagName($name);
172 $nodeSet=array();
173 $i=0;
174 if (isset($myDOMNodeList))
175 while ($node=$myDOMNodeList->item($i++)) $nodeSet[]=new php4DOMElement($node,$this);
176 return $nodeSet;
177 }

◆ get_elements_by_tagname() [3/4]

php4DOMDocument::get_elements_by_tagname (   $name)

Definition at line 169 of file domxml-php4-php5.php.

170 {
171echo "-K";
172 $myDOMNodeList=$this->myDOMNode->getElementsByTagName($name);
173 $nodeSet=array();
174 $i=0;
175 if (isset($myDOMNodeList))
176 while ($node=$myDOMNodeList->item($i))
177 {
178 $nodeSet[]=new php4DOMElement($node,$this);
179 $i++;
180 }
181 return $nodeSet;
182 }

◆ get_elements_by_tagname() [4/4]

php4DOMDocument::get_elements_by_tagname (   $name)

Definition at line 178 of file inc.xml5compliance.php.

179 {
180 $myDOMNodeList=$this->myDOMDocument->getElementsByTagName($name);
181 $nodeSet=array();
182 $i=0;
183 while ($node=$myDOMNodeList->item($i))
184 {
185 $nodeSet[]=new php4DOMElement($node);
186 $i++;
187 }
188
189 return $nodeSet;
190 }

◆ html_dump_mem() [1/4]

php4DOMDocument::html_dump_mem ( )

Definition at line 247 of file inc.xml5compliance.php.

248 {
249 return $this->myDOMDocument->saveHTML();
250 }

◆ html_dump_mem() [2/4]

php4DOMDocument::html_dump_mem ( )

Definition at line 178 of file domxml-php4-to-php5.php.

178{return $this->myDOMNode->saveHTML();}

◆ html_dump_mem() [3/4]

php4DOMDocument::html_dump_mem ( )

Definition at line 184 of file domxml-php4-php5.php.

185 {
186echo "-L";
187 return $this->myDOMNode->saveHTML();
188 }

◆ html_dump_mem() [4/4]

php4DOMDocument::html_dump_mem ( )

Definition at line 192 of file inc.xml5compliance.php.

193 {
194 return $this->myDOMDocument->saveHTML();
195 }

◆ php4DOMDocument() [1/4]

php4DOMDocument::php4DOMDocument (   $filename = '')

Definition at line 102 of file domxml-php4-php5.php.

103 {
104echo "-A";
105 $this->myDOMNode=new DOMDocument();
106 if ($filename!='') $this->myDOMNode->load($filename);
107 }

References $filename.

◆ php4DOMDocument() [2/4]

php4DOMDocument::php4DOMDocument (   $mode = DOMXML_LOAD_PARSING)

Definition at line 110 of file domxml-php4-to-php5.php.

111 {
112 $this->myDOMNode=new DOMDocument();
113 $this->myOwnerDocument=$this;
114 if ($mode & DOMXML_LOAD_VALIDATING) $this->myDOMNode->validateOnParse=true;
115 if ($mode & DOMXML_LOAD_RECOVERING) $this->myDOMNode->recover=true;
116 if ($mode & DOMXML_LOAD_SUBSTITUTE_ENTITIES) $this->myDOMNode->substituteEntities=true;
117 if ($mode & DOMXML_LOAD_DONT_KEEP_BLANKS) $this->myDOMNode->preserveWhiteSpace=false;
118 }
const DOMXML_LOAD_SUBSTITUTE_ENTITIES
const DOMXML_LOAD_RECOVERING
const DOMXML_LOAD_DONT_KEEP_BLANKS
const DOMXML_LOAD_VALIDATING

References DOMXML_LOAD_DONT_KEEP_BLANKS, DOMXML_LOAD_RECOVERING, DOMXML_LOAD_SUBSTITUTE_ENTITIES, and DOMXML_LOAD_VALIDATING.

◆ php4DOMDocument() [3/4]

php4DOMDocument::php4DOMDocument (   $source,
  $file = true 
)

Definition at line 105 of file inc.xml5compliance.php.

106 {
107 $this->myDOMDocument=new DOMDocument();
108
109 // temporary set error handler
110 set_error_handler('staticxmlerror');
111 $old = ini_set('html_errors', false);
112
113 if (is_object($source))
114 {
115 $this->myDOMDocument = $source;
116 $this->success = true;
117 }
118 else
119 {
120 if ($file)
121 {
122 $this->success = @$this->myDOMDocument->load($source);
123 }
124 else
125 {
126 $this->success = $this->myDOMDocument->loadXML($source);
127 }
128 }
129
130 // Restore error handling
131 ini_set('html_errors', $old);
132 restore_error_handler();
133
134 if (!$this->success)
135 {
136 $this->error_arr = staticxmlerror(null, null, null, null, null, true);
137 foreach($this->error_arr as $error)
138 {
139 $error = str_replace("DOMDocument::loadXML():", "", $error);
140 $this->error.= $error."<br />";
141 }
142 }
143 }
print $file
error($a_errmsg)
set error message @access public
staticxmlerror($errno, $errstr, $errfile, $errline, $errcontext, $ret=false)

References $file, error(), and staticxmlerror().

+ Here is the call graph for this function:

◆ php4DOMDocument() [4/4]

php4DOMDocument::php4DOMDocument (   $source,
  $file = true 
)

Definition at line 88 of file inc.xml5compliance.php.

89 {
90 $this->myDOMDocument=new DOMDocument();
91 if ($file)
92 {
93 $this->myDOMDocument->load($source);
94 }
95 else
96 {
97 $this->myDOMDocument->loadXML($source);
98 }
99 }

References $file.

◆ root() [1/2]

php4DOMDocument::root ( )

Definition at line 179 of file domxml-php4-to-php5.php.

179{return parent::_newDOMElement($this->myDOMNode->documentElement,$this);}

◆ root() [2/2]

php4DOMDocument::root ( )

Definition at line 190 of file domxml-php4-php5.php.

191 {
192echo "-M";
193 return new php4DOMElement($this->myDOMNode->documentElement,$this);
194 }

◆ validate() [1/2]

php4DOMDocument::validate ( $error)

Definition at line 169 of file inc.xml5compliance.php.

170 {
171 $ok = $this->myDOMDocument->validate();
172
173 if (!$ok)
174 {
175 $error = array(array("0", "Unknown Error"));
176
177 if (function_exists("libxml_get_last_error"))
178 {
179 $err = libxml_get_last_error();
180
181 if (is_object($err))
182 {
183 $error = array(array($err->code, $err->message));
184 }
185 }
186 }
187 return $error;
188 }

References $ok.

◆ validate() [2/2]

php4DOMDocument::validate ( $error)

Definition at line 125 of file inc.xml5compliance.php.

126 {
127 $ok = $this->myDOMDocument->validate();
128 if (!$ok)
129 {
130 $error = array(array("0", "Unknown Error"));
131 }
132 return $error;
133 }

References $ok.

◆ xinclude()

php4DOMDocument::xinclude ( )

Definition at line 180 of file domxml-php4-to-php5.php.

180{return $this->myDOMNode->xinclude();}

◆ xpath_init() [1/2]

php4DOMDocument::xpath_init ( )

Definition at line 146 of file inc.xml5compliance.php.

147 {
148 }

◆ xpath_init() [2/2]

php4DOMDocument::xpath_init ( )

Definition at line 102 of file inc.xml5compliance.php.

103 {
104 }

◆ xpath_new_context() [1/3]

php4DOMDocument::xpath_new_context ( )

Definition at line 156 of file inc.xml5compliance.php.

157 {
158 return xpath_new_context($this);
159 }

References xpath_new_context().

Referenced by xpath_new_context().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ xpath_new_context() [2/3]

php4DOMDocument::xpath_new_context ( )

Definition at line 181 of file domxml-php4-to-php5.php.

181{return new php4DOMXPath($this);}

◆ xpath_new_context() [3/3]

php4DOMDocument::xpath_new_context ( )

Definition at line 112 of file inc.xml5compliance.php.

113 {
114 return xpath_new_context($this);
115 }

References xpath_new_context().

+ Here is the call graph for this function:

Field Documentation

◆ $myDOMDocument

php4DOMDocument::$myDOMDocument

Definition at line 102 of file inc.xml5compliance.php.


The documentation for this class was generated from the following files: