Gjsify LogoGjsify Logo

The #RestXmlNode contains a parsed XmlNode for easy consumption

record

Hierarchy

  • XmlNode

Index

Constructors

Properties

attrs: HashTable<string | number | symbol, string | number | boolean>

a #GHashTable of string name to string values for the attributes of the element.

field
children: HashTable<string | number | symbol, string | number | boolean>

a #GHashTable of string name to #RestXmlNode for the children of the element.

field
content: string

the textual content of the element

field
name: string

the name of the element

field

the sibling #RestXmlNode with the same name

field
name: string

Methods

  • add_attr(attribute: string, value: string): void
  • Adds attribute to the given node.

    Parameters

    • attribute: string

      name of the attribute

    • value: string

      value to set attribute to

    Returns void

  • Adds a new node to the given parent node; to create the top-level node, parent should be %NULL.

    Parameters

    • tag: string

      name of the child node

    Returns Rest.XmlNode

  • get_attr(attr_name: string): string
  • Get the value of the attribute named attr_name, or %NULL if it doesn't exist.

    Parameters

    • attr_name: string

      the name of an attribute

    Returns string

  • print(): string
  • set_content(value: string): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method