function setUp() { global $doc; XML_PullParser_Errors_INI(); $this->child_tags = array("server", "ipaddress", "domain"); $this->parser = new XML_PullParser_doc($doc, $this->tags, $this->child_tags); }
function setUp() { global $doc; XML_PullParser_Errors_INI(); $this->child_tags = array("ipaddress", "server"); //$this->parser = new XML_PullParser_doc($doc,$this->tags,$this->child_tags); $this->parser = new XML_PullParser("DNS.xml", $this->tags, $this->child_tags); $this->id = $this->parser; }
function setUp() { global $doc_DNS; XML_PullParser_Errors_INI(); $this->child_tags = array("ipaddress", "server"); XML_PullParser_NamespaceSupport(true); $this->parser = new XML_PullParser_doc($doc_DNS, $this->tags, $this->child_tags); $this->parser->XML_PullParser_setCurrentNS("http://example.com/local/|http://example.com/dns.txt/"); }