Syracuse University

By Term
simplexml = new SimpleXMLElement($URL,NULL,true); } public function getAttr(){ $j=0; foreach($this->simplexml->type as $ob) { $temp = $ob->name; $temp1 = $ob->url; $this->arrayobject[$j] = $temp; $this->arrayobject1[$j] = $temp1; $j = $j +1; } } public function showAttr(){ $count = count($this->arrayobject); echo ""; echo ""; for($i=0;$i<$count;$i++) { if($i%2==0) { echo ""; echo ""; } echo ''; } echo ""; echo "
'.$this->arrayobject [$i].'
"; } } $parsexmlob = new ParseXML(); $varurl = 'http://suabws.syr.edu:8080/wsSUABType/GetTypeXML'; //$parsexmlob->conntourl($varurl); //$parsexmlob->getAttr(); //$parsexmlob->showAttr(); ?>