decompiler
1.0.0
|
A complete in-memory XML document. More...
#include <xml.hh>
Public Member Functions | |
Document (void) | |
Construct an (empty) document. | |
Element * | getRoot (void) const |
Get the root Element of the document. | |
Public Member Functions inherited from ghidra::Element | |
Element (Element *par) | |
Constructor given a parent Element. | |
~Element (void) | |
Destructor. | |
void | setName (const string &nm) |
Set the local name of the element. | |
void | addContent (const char *str, int4 start, int4 length) |
Append new character content to this element. More... | |
void | addChild (Element *child) |
Add a new child Element to the model, with this as the parent. More... | |
void | addAttribute (const string &nm, const string &vl) |
Add a new name/value attribute pair to this element. More... | |
Element * | getParent (void) const |
Get the parent Element. | |
const string & | getName (void) const |
Get the local name of this element. | |
const List & | getChildren (void) const |
Get the list of child elements. | |
const string & | getContent (void) const |
Get the character content of this element. | |
const string & | getAttributeValue (const string &nm) const |
Get an attribute value by name. More... | |
int4 | getNumAttributes (void) const |
Get the number of attributes for this element. | |
const string & | getAttributeName (int4 i) const |
Get the name of the i-th attribute. | |
const string & | getAttributeValue (int4 i) const |
Get the value of the i-th attribute. | |
Additional Inherited Members | |
Protected Attributes inherited from ghidra::Element | |
Element * | parent |
The parent Element (or null) | |
List | children |
A list of child Element objects. | |
A complete in-memory XML document.
This is actually just an Element object itself, with the document's root element as its only child, which owns all the child documents below it in DOM the hierarchy.