Interface: IXmlContentHandler

gpf.interfaces. IXmlContentHandler

Interface used to serialize XML files, the SAX way

Implemented in:

Since:
  • 0.2.7

Methods


characters(buffer)

Signal character data

Parameters:
Name Type Description
buffer String

characters

Since:
  • 0.2.7

endDocument()

Signal the end of the document

Since:
  • 0.2.7
Returns:

Resolved when ready

Type
Promise

endElement()

Signal the end of an element

Since:
  • 0.2.7
Returns:

Resolved when ready

Type
Promise

endPrefixMapping(prefix)

Signal the scope end of a prefix-URI namespace mapping

Parameters:
Name Type Description
prefix String

Prefix of the prefix-URI mapping

Since:
  • 0.2.7
Returns:

Resolved when ready

Type
Promise

processingInstruction(target, data)

Signal a processing instruction

Parameters:
Name Type Description
target String

Target of processing instruction

data String

Data of processing instruction

Since:
  • 0.2.7
Returns:

Resolved when ready

Type
Promise

startDocument()

Signal the beginning of the document

Since:
  • 0.2.7
Returns:

Resolved when ready

Type
Promise

startElement(qName [, attributes])

Signal the beginning of an element

Parameters:
Name Type Argument Default Description
qName String

Qualified name, [prefix:]localName

attributes Object <optional>
{}

attribute dictionary (string/string)

Since:
  • 0.2.7
Returns:

Resolved when ready

Type
Promise

startPrefixMapping(prefix, uri)

Signal the scope start a prefix-URI namespace mapping

Parameters:
Name Type Description
prefix String

Prefix of the prefix-URI mapping

uri String

Namespace URI associated with the prefix

Since:
  • 0.2.7
Returns:

Resolved when ready

Type
Promise