|
Ghidra Decompiler Analysis Engine
|
An XML element. A node in the DOM tree. More...
#include <xml.hh>


Public Member Functions | |
| ~Element (void) | |
| Destructor. | |
| 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... | |
| const string & | getAttributeValue (const string &nm) const |
| Get an attribute value by name. More... | |
Protected Attributes | |
| Element * | parent |
| The parent Element (or null) | |
| List | children |
| A list of child Element objects. | |
An XML element. A node in the DOM tree.
This is the main node for the in-memory representation of the XML (DOM) tree.
|
inline |
Add a new name/value attribute pair to this element.
| nm | is the name of the attribute |
| vl | is the value of the attribute |
|
inline |
|
inline |
Append new character content to this element.
| str | is an array of character data |
| start | is the index of the first character to append |
| length | is the number of characters to append |
| const string & Element::getAttributeValue | ( | const string & | nm | ) | const |
Get an attribute value by name.
Look up the value for the given attribute name and return it. An exception is thrown if the attribute does not exist.
| nm | is the name of the attribute |
1.8.17