parser

class SchemaParser()

SchemaParser class

SchemaParser.SchemaParser
SchemaParser.getElementTagName(element)

Extract the name of an XML element.

NOTE: This method cannot be merged into {@link getElementTagValue} because it is used as a first-class object.

Arguments:
  • element (object) – An XML element.

Returns:

string – The name of the element.

SchemaParser.getElementTagValue(element, tagName)

Extract a value from an XML element.

Arguments:
  • element (object) – An XML element.

  • tagName (string) – The tag value to extract.

Returns:

string – The value of the tag in the element.