ISimpleXML



Describes minimum required functionality from SimpleXML component.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class ISimpleXML :public virtual IComponent
{
public:
    virtual String getVersion() = 0; // Return version 
    virtual String getEncoding() = 0; // Return encoding 
    virtual String getDoctype() = 0; // Return doc-type data 
    virtual script::xml::Entity &getRootNode() = 0; // Return root node which may contain prolog(s), doc-type and root element 
    
    virtual bool setVersion(const String &value) = 0; // Set version 
    virtual bool setEncoding(const String &value) = 0; // Set encoding 
    virtual bool setDoctype(const String &value) = 0; // Set doc-type data. Space should be the first character. Empty value removes doc-type 
    
    virtual String ToString(const bool compact) = 0; // Convert to string, with or without nice (human readable) formatting 
    virtual bool Save(const String &filename, const bool compact) = 0; // Save to file, with or without nice (human readable) formatting 
    virtual bool LoadFromFile(const String &filename, IErrorListener *error_listener) = 0; // Load XML from file 
    virtual bool LoadFromString(const String &value, IErrorListener *error_listener) = 0; // Load XML from string 
};
Namespace: nitisa::standard
Include: Standard/Components/ISimpleXML.h