in scala/xml
class Document

class Document()
extends NodeSeq
with ScalaObject

A document information item (according to InfoSet spec). The comments are copied from the Infoset spec, only augmented with some information on the Scala types for definitions that might have no value.

Method Summary
  var allDeclarationsProcessed: Boolean
     9.
  var baseURI: String
     The base URI of the document entity.
  var children: Seq[Node]
     An ordered list of child information items, in document order.
  var docElem: Node
     The element information item corresponding to the document element.
  var dtd: DTD
     The dtd that comes with the document, if any
  var encoding: Option[String]
     The name of the character encoding scheme in which the document entity is expressed.
  def notations: Seq[NotationDecl]
     An unordered set of notation information items, one for each notation declared in the DTD.
  var standAlone: Option[Boolean]
     An indication of the standalone status of the document, either true or false.
  def theSeq: Seq[Node]
  def unparsedEntities: Seq[EntityDecl]
     An unordered set of unparsed entity information items, one for each unparsed entity declared in the DTD.
  var version: Option[String]
     A string representing the XML version of the document.

Methods inherited from java/lang/Object-class
clone, eq, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/Iterable-class
/:, :\, concat, exists, find, foldLeft, foldRight, forall, foreach, sameElements

Methods inherited from scala/ScalaObject-class
getScalaType

Methods inherited from scala/Seq-class
concat, copyToArray, drop, indexOf, isDefinedAt, lastIndexOf, stringPrefix, subseq, take, toList

Methods inherited from scala/xml/NodeSeq-class
\, \\, apply, apply, asList, elements, equals, filter, flatMap, length, map, text, toString

Method Detail

children

  var children: Seq[Node]
An ordered list of child information items, in document order. The list contains exactly one element information item. The list also contains one processing instruction information item for each processing instruction outside the document element, and one comment information item for each comment outside the document element. Processing instructions and comments within the DTD are excluded. If there is a document type declaration, the list also contains a document type declaration information item.

docElem

  var docElem: Node
The element information item corresponding to the document element.

dtd

  var dtd: DTD
The dtd that comes with the document, if any

notations

  def notations: Seq[NotationDecl]
An unordered set of notation information items, one for each notation declared in the DTD. If any notation is multiply declared, this property has no value.

unparsedEntities

  def unparsedEntities: Seq[EntityDecl]
An unordered set of unparsed entity information items, one for each unparsed entity declared in the DTD.

baseURI

  var baseURI: String
The base URI of the document entity.

encoding

  var encoding: Option[String]
The name of the character encoding scheme in which the document entity is expressed.

standAlone

  var standAlone: Option[Boolean]
An indication of the standalone status of the document, either true or false. This property is derived from the optional standalone document declaration in the XML declaration at the beginning of the document entity, and has no value (None) if there is no standalone document declaration.

version

  var version: Option[String]
A string representing the XML version of the document. This property is derived from the XML declaration optionally present at the beginning of the document entity, and has no value (None) if there is no XML declaration.

allDeclarationsProcessed

  var allDeclarationsProcessed: Boolean
9. This property is not strictly speaking part of the infoset of the document. Rather it is an indication of whether the processor has read the complete DTD. Its value is a boolean. If it is false, then certain properties (indicated in their descriptions below) may be unknown. If it is true, those properties are never unknown.

theSeq

  def theSeq: Seq[Node]