|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
14 #ifndef XML_DOCUMENTHANDLER_H
15 #define XML_DOCUMENTHANDLER_H
27 class DocumentErrorHandle_tr;
50 Document create(
const std::string& tag,
const std::string& comment)
const;
60 virtual Document parse(
const char* doc_string,
size_t length)
const;
62 virtual Document parse(
const char* doc_string,
size_t length,
const char* sys_id,
UriReader* reader)
const;
82 #endif // XML_DOCUMENTHANDLER_H
Document create(const char *tag, const char *comment=0) const
Create new XML document by parsing empty xml buffer.
virtual Document load(const std::string &fname) const
Load XML file and parse it.
Class to easily access the properties of single XmlElements.
Namespace for the AIDA detector description toolkit supporting XML utilities.
static std::string defaultComment()
Default comment string.
Class supporting to read data given a URI.
virtual Document parse(const char *doc_string, size_t length) const
Parse a standalong XML string into a document.
Class supporting the basic functionality of an XML document.
static int setMinimumPrintLevel(int level)
Set minimum print level.
virtual int output(Document doc, const std::string &fname) const
Write xml document to output file (stdout if file name empty)
Class supporting to read and parse XML documents.
XERCES_XMLCH_T XmlChar
Use the definition from the autoconf header of Xerces:
virtual Document load(Handle_t base, const XmlChar *fname, UriReader *reader) const
Load secondary XML file with relative addressing with respect to handle.
Namespace for the AIDA detector description toolkit.
static std::string system_directory(Handle_t base)
System directory of a given XML entity.
virtual ~DocumentHandler()
Default destructor.
DocumentHandler()
Default constructor.
static std::string system_path(Handle_t base)
System ID of a given XML entity.