Navigation
Synopsis XML utilities
Details DOM
Description XML is a widely used markup language for encoding and exchanging documents.

The following functions and datatypes are provided, all based on the Document Object Model (DOM):
  • attribute: Auxiliary constructor for XML attribute without namespace.
  • attrs:
  • element: Auxiliary constructor for XML element without namespace.
  • Node: Datatypes for representing an instance of the DOM.
  • parseXMLDOM: Parse an XML document and return a DOM instance.
  • parseXMLDOMTrim: Parse an XML document and trim it (remove layout).
  • xmlCompact: Convert a DOM instance to a compact XML string (with minimal white space).
  • xmlPretty: Convert a DOM instance to a pretty printed XML string.
  • xmlRaw: Convert a DOM instance to a raw XML string.
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.