Base class for loading/storing XML files that have a handler derived from XMLHandler.
Definition: XMLFile.h:49
const String & getVersion() const
return the version of the schema
XMLFile()
Default constructor.
String schema_version_
Version string.
Definition: XMLFile.h:105
String enforced_encoding_
Encoding string that replaces the encoding (system dependent or specified in the XML)....
Definition: XMLFile.h:108
void enforceEncoding_(const String &encoding)
void parse_(const String &filename, XMLHandler *handler)
Parses the XML file given by filename using the handler given by handler.
XMLFile(const String &schema_location, const String &version)
Constructor that sets the schema location.
void save_(const String &filename, XMLHandler *handler) const
Stores the contents of the XML handler given by handler in the file given by filename.
virtual ~XMLFile()
Destructor.
String schema_location_
XML schema file location.
Definition: XMLFile.h:102
void parseBuffer_(const std::string &buffer, XMLHandler *handler)
Parses the in-memory buffer given by buffer using the handler given by handler.
bool isValid(const String &filename, std::ostream &os)
Checks if a file validates against the XML schema.
Base class for XML handlers.
Definition: XMLHandler.h:327
A more convenient string class.
Definition: String.h:61
String encodeTab(const String &to_encode)
Encodes tabs '\t' in the string as 	 and returns the encoded string.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47