XmlElement

/**
* @brief An xml element.
*/

Inherit from XmlElementDO

Primary key: id: int

schema XmlElement extends XmlElementDO {
  @primary id: int,
  parent_id: int,
  index_order: int,
  location_id: int
}

XmlElement::getParentId

/**
* @brief gets the parent id of the element.
* @return int
*/
pub fn getParentId(self: XmlElement) -> int;

XmlElement::getIndex

/**
* @brief gets the index of the element.
* @return int 
*/
pub fn getIndex(self: XmlElement) -> int;

XmlElement::getLocationId

/**
* @brief gets the location id of this element.
* @return int
*/
pub fn getLocationId(self: XmlElement) -> int;

XmlElement::getAChild

/**
* @brief gets a child element of the element.
* @return XmlElement 
*/
pub fn getAChild(self: XmlElement) -> *XmlElement;

XmlElement::getName

/**
* @brief gets the element's name with the prefix.
* @return string 
*/
pub fn getName(self: XmlElement) -> string;

XmlElement::getAnAncestor

/**
* @brief gets an ancestor of the element.
* @return XmlElement 
*/
pub fn getAnAncestor(self: XmlElement) -> *XmlElement;

XmlElement::getElementPrefix

/**
* @brief gets the prefix of the element
* @return string 
*/
pub fn getElementPrefix(self: XmlElement) -> string;

XmlElement::getValueByAttributeName

/**
* @brief gets the attribute's value by a given attribute name.
* @return string
*/
  • Parameter self: XmlElement
  • Parameter name: string
  • Return *string
pub fn getValueByAttributeName(self: XmlElement, name: string) -> *string;

XmlElement::getParent

/**
* @brief gets the parent of the element.
* @return XmlElement 
*/
pub fn getParent(self: XmlElement) -> XmlElement;

XmlElement::getLocation

/**
* @brief gets the location for the element.
* @return Location
*/
pub fn getLocation(self: XmlElement) -> Location;

XmlElement::__all__

Data constraint method.

pub fn __all__(db: XmlDB) -> *XmlElement;

XmlElement::getElementName

/**
* @brief gets the element name.
* @return string 
*/
pub fn getElementName(self: XmlElement) -> string;

XmlElement::getCharacter

/**
* @brief gets the xml character of the element, if any.
* @return XmlCharacter 
*/
pub fn getCharacter(self: XmlElement) -> *XmlCharacter;

XmlElement::getAttribute

/**
* @brief gets the attribute of the element, if any.
* @return XmlAttribute 
*/
pub fn getAttribute(self: XmlElement) -> *XmlAttribute;