Chapter 3. The objects representing the document

Table of Contents
3.1. The document class
3.2. The class type node
3.3. The class type extension
3.4. Details of the mapping from XML text to the tree representation

This description might be out-of-date. See the module interface files for updated information.

3.1. The document class

class [ 'ext ] document :
  Pxp_types.collect_warnings -> 
  object
    method init_xml_version : string -> unit
    method init_root : 'ext node -> unit

    method xml_version : string
    method xml_standalone : bool
    method dtd : dtd
    method root : 'ext node

    method encoding : Pxp_types.rep_encoding

    method add_pinstr : proc_instruction -> unit
    method pinstr : string -> proc_instruction list
    method pinstr_names : string list

    method write : Pxp_types.output_stream -> Pxp_types.encoding -> unit

  end
;;
The methods beginning with init_ are only for internal use of the parser.