Inheritance diagram for CP_XMLDocument:
Public Member Functions | |
Constructor / Destructor | |
CP_XMLDocument () | |
Constructor. | |
virtual | ~CP_XMLDocument () |
Destructor. | |
Child Nodes | |
CP_XMLDocNode * | GetRootNode () |
void | SetRootNode (CP_XMLDocNode *inRootNode) |
Parsing | |
void | ParseXML (const CP_FileSystemSpec &inXMLFileSpec, bool inUseOSNative=true) |
void | ParseXML (const CP_HandleBlock &inXMLData) |
void | ParseXML (CP_InStream &inXMLStream) |
Writing | |
void | WriteXML (const CP_FileSystemSpec &inXMLFileSpec, FourCharCode inCreator=0, FourCharCode inType=kCP_Text_FileType) |
CP_HandleBlock * | WriteXML () |
Protected Attributes | |
CP_XMLDocNode * | fRootNode |
Private Member Functions | |
Writing | |
void | WriteNode (CP_XMLDocNode *inNode, CP_XMLWriter_Element *inParentElement) |
void | WriteChildNodes (CP_XMLDocNode *inNode, CP_XMLWriter_Element *inParentElement) |
|
Constructor.
|
|
Destructor.
|
|
Returns the outter most or root node of this XML document.
|
|
Sets the root node for this document.
|
|
Read in and parse the passed in XML file. This will open and read in the XML document creating a list of nodes for each encountered element. The root node then can be accessed by the GetRootNode() method.
|
|
Read in and parse the passed in XML data. The XML data is contained in the passed in handle block. This will parse the XML document creating a list of nodes for each encountered element. The root node then can be accessed by the GetRootNode() method.
|
|
Read in and parse the passed in XML data. The XML data is contained in the passed in stream. This will parse the XML document creating a list of nodes for each encountered element. The root node then can be accessed by the GetRootNode() method.
|
|
Write out this documents data to a file containing the XML data. The file is written to the location specified by the passed in CP_FileSystemSpec.
|
|
Write out this documents data to a CP_HandleBlock containing the XML data.
|
|
Write out the passed in inNode, which is a node for the passed in inParentElement.
|
|
Write out all of the child nodes of the passed in inNode. All of the child nodes are made a parent of inParentElement when writing them out.
|
|
|