41 class DomDocumentType;
42 class DomImplementation;
43 class DomCDATASection;
44 class DomProcessingInstruction;
46 class DomDocumentFragment;
50 class DomEntityReference;
52 class DomDocument_Impl;
206 bool eat_whitespace =
true,
DOM Processing Instruction class.
Definition: dom_processing_instruction.h:44
DomElement get_document_element()
Returns the root document element node.
std::vector< DomNode > load(IODevice &input, bool eat_whitespace=true, DomNode insert_point=DomNode())
Loads the DOM document as XML from an input source.
DOM Entity Reference class.
Definition: dom_entity_reference.h:52
DOM Implementation class.
Definition: dom_implementation.h:49
DOM Document Fragment class.
Definition: dom_document_fragment.h:71
DomEntityReference create_entity_reference(const DomString &name)
Creates an EntityReference object.
DomElement get_element_by_id(const DomString &element_id)
Returns the Element whose ID is given by element_id.
DomDocument(const std::shared_ptr< DomNode_Impl > &impl)
Constructs a DomDocument.
std::shared_ptr< DomNode_Impl > impl
Definition: dom_node.h:422
DOM Document class.
Definition: dom_document.h:65
I/O Device interface.
Definition: iodevice.h:51
DomCDATASection create_cdata_section(const DomString &data)
Creates a CDATASection node whose value is the specified string.
DomDocument(const DomString &namespace_uri, const DomString &qualified_name, const DomDocumentType &doctype)
DomProcessingInstruction create_processing_instruction(const DomString &target, const DomString &data)
Creates a ProcessingInstruction node given the specified name and data strings.
DomDocumentFragment create_document_fragment()
Creates an empty DocumentFragment object.
DomAttr create_attribute(const DomString &name)
Creates an Attr of the given name.
DomNodeList get_elements_by_tag_name(const DomString &tag_name)
Returns a NodeList of all the Elements with a given tag name.
void clear_all()
Removes all nodes from the DOM document.
void save(IODevice &output, bool insert_whitespace=true)
Saves the DOM document as XML to an input source.
DOM Document Type class.
Definition: dom_document_type.h:51
DOM Node class.
Definition: dom_node.h:71
DomDocumentType get_doctype()
Returns the Document Type Declaration (see DomDocumentType)associated with this document.
DOM Text class.
Definition: dom_text.h:55
DOM CDATA Section.
Definition: dom_cdata_section.h:55
DomElement create_element_ns(const DomString &namespace_uri, const DomString &qualified_name)
Creates an element of the given qualified name and namespace URI.
DOM Node List class.
Definition: dom_node_list.h:51
DomAttr create_attribute_ns(const DomString &namespace_uri, const DomString &qualified_name)
Creates an attribute of the given qualified name and namespace URI.
DomNodeList get_elements_by_tag_name_ns(const DomString &namespace_uri, const DomString &qualified_name)
Returns a NodeList of all the Elements with a given local name and namespace URI.
std::string DomString
Definition: dom_string.h:37
DomText create_text_node(const DomString &data)
Creates a Text node given the specified string.
DOM Attribute class.
Definition: dom_attr.h:67
DOM Element class.
Definition: dom_element.h:60
DomImplementation get_implementation()
Returns the DomImplementation object that handles this document.
DomElement create_element(const DomString &tag_name)
Creates an element of the type specified.
DomDocument()
Constructs a DOM Document.
DomNode import_node(const DomNode &node, bool deep)
Imports a node from another document to this document.
DomComment create_comment(const DomString &data)
Creates a Comment node given the specified string.
DomDocument(IODevice &input, bool eat_whitespace=true)
Constructs a DomDocument.