Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

XmlParser Class Reference

List of all members.

Public Member Functions

 XmlParser ($filename)
 setFilename ($string)
 setData ($data)
getStruct ()
getTree ()
 _getChildren ($vals, &$i)

Public Attributes

 $filename
 $content

Constructor & Destructor Documentation

XmlParser::XmlParser filename  ) 
 

The constructor.

Definition at line 29 of file XmlParser.class.php.


Member Function Documentation

XmlParser::_getChildren vals,
&$  i
 

Definition at line 87 of file XmlParser.class.php.

& XmlParser::getStruct  ) 
 

Returns the struct obtained by calling xml_parse_into_struct PHP function

Definition at line 55 of file XmlParser.class.php.

& XmlParser::getTree  ) 
 

Returns a tree which contains the XML data with this structure:

  • $tree["tag"] --> Tag
  • $tree["attributes"] --> Array ([AtribName] => AtribValue, ...)
  • $tree["children"] --> Array ([0] => $childtree, ...)

Definition at line 74 of file XmlParser.class.php.

XmlParser::setData data  ) 
 

Sets the XML data that will be parsed

Definition at line 48 of file XmlParser.class.php.

XmlParser::setFilename string  ) 
 

Sets the XML that will be parsed

Definition at line 40 of file XmlParser.class.php.


Member Data Documentation

XmlParser::$content
 

The content of the xml file

Definition at line 26 of file XmlParser.class.php.

XmlParser::$filename
 

The xml file

Definition at line 23 of file XmlParser.class.php.


The documentation for this class was generated from the following file:
Generated on Wed Nov 19 20:29:45 2003 for James by doxygen 1.3.4