15 #ifndef DD4HEP_XML_DOCUMENTHANDLER_H
16 #define DD4HEP_XML_DOCUMENTHANDLER_H
29 class DocumentErrorHandler;
58 virtual Document parse(
const char* doc_string,
size_t length)
const;
60 virtual Document parse(
const char* doc_string,
size_t length,
const char* sys_id,
UriReader* reader)
const;
Document create(const char *tag, const char *comment=0) const
Create new XML document by parsing empty xml buffer.
virtual int output(Document doc, const std::string &fname) const
Write xml document to output file (stdout if file name empty)
virtual Document load(const std::string &fname) const
Load XML file and parse it.
virtual Document parse(const char *doc_string, size_t length) const
Parse a standalong XML string into a document.
Class supporting to read data given a URI.
DocumentHandler()
Default constructor.
virtual ~DocumentHandler()
Default destructor.
Class to easily access the properties of single XmlElements.
Class supporting the basic functionality of an XML document.
static std::string system_directory(Handle_t base)
System directory of a given XML entity.
static std::string system_path(Handle_t base)
System ID of a given XML entity.
Class supporting to read and parse XML documents.