4 * What is like to be an XML Tag?
\r
7 class XmlTagCollection
\r
9 private $xmlTagCollection = array(); // a collection of XML tag objects
\r
11 public function addXmlTagObject($theXmlTagObject)
\r
13 $this->xmlTagCollection[] = $theXmlTagObject;
\r
16 public function getXmlTagCollection()
\r
18 //echo '<br><br>XmlTagCollection Class -> getXmlTagCollection()<br>Tot in XmlTagCollection: '.count($this->xmlTagCollection);
\r
19 return $this->xmlTagCollection;
\r
23 * Print all values of the XML tag object
\r
25 public function toString()
\r
27 echo "<br><br>Total <b>".$this->xmlTagCollection."</b> Tags = ".count($this->xmlTagCollection)."";
\r
29 // Display all tag attributes in the tag
\r
30 foreach ($this->xmlTagCollection as $xmlTagObject)
\r
32 $xmlTagObject->toString();
\r
37 } // end class XmlTagCollection
\r