Options
All
  • Public
  • Public/Protected
  • All
Menu

Just a wrapper for an XML Element object. It facilitates handling of XML elements by OSMD

Hierarchy

  • IXmlElement

Index

Constructors

Properties

attrs: Attr[]
elem: Element
firstAttribute: Attr
hasAttributes: boolean = false
hasElements: boolean
name: string
value: string

Methods

  • attribute(attributeName: string): Attr
  • Get the attribute with the given name

    Parameters

    • attributeName: string

    Returns Attr

  • attributes(): Attr[]
  • Get the first child element with the given node name with all the children of consequent child elements with the same node name. for example two tags will be combined for better processing

    Parameters

    • elementName: string

    Returns IXmlElement

  • Get the children with the given node name (if given, otherwise all child elements)

    Parameters

    • Optional nodeName: string

    Returns IXmlElement[]

Generated using TypeDoc