summaryrefslogtreecommitdiff
path: root/xml.class
diff options
context:
space:
mode:
Diffstat (limited to 'xml.class')
-rw-r--r--xml.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/xml.class b/xml.class
index 8b0042a..1aa03a1 100644
--- a/xml.class
+++ b/xml.class
@@ -49,6 +49,7 @@ function from_xml($xmldata, $p)
$this->_p = $p + array('encoding' => "ISO-8859-1");
$this->_arrayforce = array_flip((array)$this->_p['forcearray']);
$this->_stack = array();
+ $this->_baseclass = get_class($this);
unset($this->error);
$parser = xml_parser_create($this->_p['encoding']);
xml_set_object($parser, $this);
@@ -126,7 +127,7 @@ function start_element($parser, $name, $attrs)
$name = $this->_p['prefix'] . $name;
if (!class_exists($name))
- eval("class $name extends it_xml {}");
+ eval("class $name extends $this->_baseclass {}");
if (!$this->_stack && !$this->_p['factory'])
array_unshift($this->_stack, &$this);