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

  • addAttr(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

  • Searches for the first child node of start named tag.

    Parameters

    • tag: string

      the name of a node

    Returns Rest.XmlNode

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

    Parameters

    • attrName: string

      the name of an attribute

    Returns string

  • print(): string
  • Recursively outputs given node and it's children.

    Returns string

  • setContent(value: string): void
  • Sets content for the given node.

    Parameters

    • value: string

      the content

    Returns 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