scala.xml.parsing

ConstructingParser

class ConstructingParser extends ConstructingHandler with ExternalSources with MarkupParser

An xml parser. parses XML and invokes callback methods of a MarkupHandler. Don't forget to call next.ch on a freshly instantiated parser in order to initialize it. If you get the parser from the object method, initialization is already done for you.

object parseFromURL {
  def main(args:Array[String]): Unit = {
    val url = args(0);
    val src = scala.io.Source.fromURL(url);
    val cpa = scala.xml.parsing.ConstructingParser.fromSource(src, false); // fromSource initializes automatically
    val doc = cpa.document();

    // let's see what it is
    val ppr = new scala.xml.PrettyPrinter(80,5);
    val ele = doc.docElem;
    Console.println("finished parsing");
    val out = ppr.format(ele);
    Console.println(out);
  }
}
go to: companion
source: ConstructingParser.scala
Inherited
  1. Hide All
  2. Show all
  1. MarkupParser
  2. MarkupParserCommon
  3. TokenTests
  4. ExternalSources
  5. ConstructingHandler
  6. MarkupHandler
  7. Logged
  8. AnyRef
  9. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new ConstructingParser(input: Source, preserveWS: Boolean)

Type Members

  1. type AttributesType = (MetaData, NamespaceBinding)

    definition classes: MarkupParser → MarkupParserCommon
  2. type ElementType = NodeSeq

    definition classes: MarkupParser → MarkupParserCommon
  3. type InputType = Source

    definition classes: MarkupParser → MarkupParserCommon
  4. type NamespaceType = NamespaceBinding

    definition classes: MarkupParser → MarkupParserCommon
  5. type PositionType = Int

    definition classes: MarkupParser → MarkupParserCommon

Value Members

  1. def !=(arg0: AnyRef): Boolean

    attributes: final
    definition classes: AnyRef
  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ##(): Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf[T0](): T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf[T0](): Boolean

    attributes: final
    definition classes: AnyRef
  6. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  7. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  8. def appendText(pos: Int, ts: NodeBuffer, txt: String): Unit

    definition classes: MarkupParser
  9. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  10. def attListDecl(name: String, attList: List[AttrDecl]): Unit

    definition classes: MarkupHandler
  11. def attrDecl(): Unit

    <! attlist := ATTLIST

    <! attlist := ATTLIST

    definition classes: MarkupParser
  12. val cbuf: StringBuilder

    character buffer, for names

    character buffer, for names

    attributes: protected
    definition classes: MarkupParser
  13. var ch: Char

    holds the next character

    holds the next character

    definition classes: MarkupParser → MarkupParserCommon
  14. def ch_returning_nextch: Char

    definition classes: MarkupParser → MarkupParserCommon
  15. def checkPubID(s: String): Boolean

    definition classes: TokenTests
  16. def checkSysID(s: String): Boolean

    definition classes: TokenTests
  17. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  18. def comment(pos: Int, txt: String): Comment

    callback method invoked by MarkupParser after parsing comment.

    callback method invoked by MarkupParser after parsing comment.

    definition classes: ConstructingHandlerMarkupHandler
  19. def content(pscope: NamespaceBinding): NodeSeq

    content1 ::= '<' content1 | '&' charref .

    content1 ::= '<' content1 | '&' charref ...

    definition classes: MarkupParser
  20. def content1(pscope: NamespaceBinding, ts: NodeBuffer): Unit

    '<' content1 ::= .

    '<' content1 ::= ...

    definition classes: MarkupParser
  21. var curInput: Source

    definition classes: MarkupParser
  22. var decls: List[Decl]

    definition classes: MarkupHandler
  23. var doc: Document

    attributes: protected
    definition classes: MarkupParser
  24. def document(): Document

    [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>' [24] VersionInfo ::= S 'version' Eq ("'" VersionNum "'" | '"' VersionNum '"') [25] Eq ::= S? '=' S? [26] VersionNum ::= '1.

    [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>' [24] VersionInfo ::= S 'version' Eq ("'" VersionNum "'" | '"' VersionNum '"') [25] Eq ::= S? '=' S? [26] VersionNum ::= '1.0' [27] Misc ::= Comment | PI | S

    definition classes: MarkupParser
  25. var dtd: DTD

    definition classes: MarkupParser
  26. def elem(pos: Int, pre: String, label: String, attrs: MetaData, pscope: NamespaceBinding, nodes: NodeSeq): NodeSeq

    callback method invoked by MarkupParser after parsing an element, between the elemStart and elemEnd callbacks

    callback method invoked by MarkupParser after parsing an element, between the elemStart and elemEnd callbacks

    pos

    the position in the source file

    pre

    the prefix

    label

    the local name

    attrs

    the attributes (metadata)

    returns

    ...

    definition classes: ConstructingHandlerMarkupHandler
  27. def elemDecl(n: String, cmstr: String): Unit

    definition classes: MarkupHandler
  28. def elemEnd(pos: Int, pre: String, label: String): Unit

    callback method invoked by MarkupParser after end-tag of element.

    callback method invoked by MarkupParser after end-tag of element.

    pos

    the position in the source file

    pre

    the prefix

    label

    the local name

    definition classes: MarkupHandler
  29. def elemStart(pos: Int, pre: String, label: String, attrs: MetaData, scope: NamespaceBinding): Unit

    callback method invoked by MarkupParser after start-tag of element.

    callback method invoked by MarkupParser after start-tag of element.

    pos

    the position in the sourcefile

    pre

    the prefix

    label

    the local name

    attrs

    the attributes (metadata)

    definition classes: MarkupHandler
  30. def element(pscope: NamespaceBinding): NodeSeq

    definition classes: MarkupParser
  31. def element1(pscope: NamespaceBinding): NodeSeq

    '<' element ::= xmlTag1 '>' { xmlExpr | '{' simpleExpr '}' } ETag | xmlTag1 '/' '>'

    '<' element ::= xmlTag1 '>' { xmlExpr | '{' simpleExpr '}' } ETag | xmlTag1 '/' '>'

    definition classes: MarkupParser
  32. def elementDecl(): Unit

    <! element := ELEMENT

    <! element := ELEMENT

    definition classes: MarkupParser
  33. def endDTD(n: String): Unit

    definition classes: MarkupHandler
  34. var ent: Map[String, EntityDecl]

    definition classes: MarkupHandler
  35. def entityDecl(): Unit

    <! element := ELEMENT

    <! element := ELEMENT

    definition classes: MarkupParser
  36. def entityRef(pos: Int, n: String): EntityRef

    callback method invoked by MarkupParser after parsing entity ref.

    callback method invoked by MarkupParser after parsing entity ref.

    definition classes: ConstructingHandlerMarkupHandler
  37. var eof: Boolean

    definition classes: MarkupParser → MarkupParserCommon
  38. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  39. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef → Any
  40. def errorAndResult[T](msg: String, x: T): T

    attributes: protected
    definition classes: MarkupParserCommon
  41. def errorNoEnd(tag: String): Nothing

    definition classes: MarkupParser → MarkupParserCommon
  42. var extIndex: Int

    definition classes: MarkupParser
  43. def extSubset(): Unit

    definition classes: MarkupParser
  44. def externalID(): ExternalID

    externalID ::= SYSTEM S syslit PUBLIC S pubid S syslit

    externalID ::= SYSTEM S syslit PUBLIC S pubid S syslit

    definition classes: MarkupParser
  45. def externalSource(systemId: String): Source

    .

    ...

    systemId

    ...

    returns

    ...

    definition classes: ExternalSources
  46. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  47. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  48. def hashCode(): Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  49. def initialize: MarkupParser with MarkupHandler

    As the current code requires you to call nextch once manually after construction, this method formalizes that suboptimal reality.

    As the current code requires you to call nextch once manually after construction, this method formalizes that suboptimal reality.

    definition classes: MarkupParser
  50. var inpStack: List[Source]

    stack of inputs

    stack of inputs

    definition classes: MarkupParser
  51. val input: Source

    definition classes: ConstructingParserMarkupParser
  52. def intSubset(): Unit

    "rec-xml/#ExtSubset" pe references may not occur within markup declarations

    "rec-xml/#ExtSubset" pe references may not occur within markup declarations

    definition classes: MarkupParser
  53. def isAlpha(c: Char): Boolean

    These are 99% sure to be redundant but refactoring on the safe side.

    These are 99% sure to be redundant but refactoring on the safe side.

    definition classes: TokenTests
  54. def isAlphaDigit(c: Char): Boolean

    definition classes: TokenTests
  55. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  56. def isName(s: String): Boolean

    Name ::= ( Letter | '_' ) (NameChar)*

    Name ::= ( Letter | '_' ) (NameChar)*

    see [5] of XML 1.0 specification

    definition classes: TokenTests
  57. def isNameChar(ch: Char): Boolean

    NameChar ::= Letter | Digit | '.

    NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender

    see [4] and Appendix B of XML 1.0 specification

    definition classes: TokenTests
  58. def isNameStart(ch: Char): Boolean

    NameStart ::= ( Letter | '_' ) where Letter means in one of the Unicode general categories { Ll, Lu, Lo, Lt, Nl }

    NameStart ::= ( Letter | '_' ) where Letter means in one of the Unicode general categories { Ll, Lu, Lo, Lt, Nl }

    We do not allow a name to start with ':'. see [3] and Appendix B of XML 1.0 specification

    definition classes: TokenTests
  59. def isPubIDChar(ch: Char): Boolean

    definition classes: TokenTests
  60. def isSpace(cs: Seq[Char]): Boolean

    (#x20 | #x9 | #xD | #xA)+

    (#x20 | #x9 | #xD | #xA)+

    attributes: final
    definition classes: TokenTests
  61. def isSpace(ch: Char): Boolean

    (#x20 | #x9 | #xD | #xA)

    (#x20 | #x9 | #xD | #xA)

    attributes: final
    definition classes: TokenTests
  62. def isValidIANAEncoding(ianaEncoding: Seq[Char]): Boolean

    Returns true if the encoding name is a valid IANA encoding.

    Returns true if the encoding name is a valid IANA encoding. This method does not verify that there is a decoder available for this encoding, only that the characters are valid for an IANA encoding name.

    ianaEncoding

    The IANA encoding name.

    definition classes: TokenTests
  63. val isValidating: Boolean

    returns true is this markup handler is validating

    returns true is this markup handler is validating

    definition classes: MarkupHandler
  64. def log(msg: String): Unit

    This method should log the message given as argument somewhere as a side-effect.

    This method should log the message given as argument somewhere as a side-effect.

    msg

    ...

    definition classes: ConstructingParserLogged
  65. def lookahead(): BufferedIterator[Char]

    Create a lookahead reader which does not influence the input

    Create a lookahead reader which does not influence the input

    definition classes: MarkupParser → MarkupParserCommon
  66. def lookupElemDecl(Label: String): ElemDecl

    definition classes: MarkupHandler
  67. def markupDecl(): Unit

    definition classes: MarkupParser
  68. def markupDecl1(): Any

    definition classes: MarkupParser
  69. def mkAttributes(name: String, pscope: NamespaceBinding): (MetaData, NamespaceBinding)

    definition classes: MarkupParser → MarkupParserCommon
  70. def mkProcInstr(position: Int, name: String, text: String): NodeSeq

    definition classes: MarkupParser → MarkupParserCommon
  71. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  72. def nextch: Char

    this method assign the next character to ch and advances in input

    this method assign the next character to ch and advances in input

    definition classes: MarkupParser → MarkupParserCommon
  73. def notationDecl(): Unit

    'N' notationDecl ::= "OTATION"

    'N' notationDecl ::= "OTATION"

    definition classes: MarkupParser
  74. def notationDecl(notat: String, extID: ExternalID): Unit

    definition classes: MarkupHandler
  75. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  76. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  77. def parameterEntityDecl(name: String, edef: EntityDef): Unit

    definition classes: MarkupHandler
  78. def parseDTD(): Unit

    parses document type declaration and assigns it to instance variable dtd.

    parses document type declaration and assigns it to instance variable dtd.

    &lt;! parseDTD ::= DOCTYPE name ... >

    definition classes: MarkupParser
  79. def parsedEntityDecl(name: String, edef: EntityDef): Unit

    definition classes: MarkupHandler
  80. def peReference(name: String): Unit

    definition classes: MarkupHandler
  81. def pop(): Unit

    definition classes: MarkupParser
  82. var pos: Int

    holds the position in the source file

    holds the position in the source file

    definition classes: MarkupParser
  83. val preserveWS: Boolean

    if true, does not remove surplus whitespace

    if true, does not remove surplus whitespace

  84. def procInstr(pos: Int, target: String, txt: String): ProcInstr

    callback method invoked by MarkupParser after parsing PI.

    callback method invoked by MarkupParser after parsing PI.

    definition classes: ConstructingHandlerMarkupHandler
  85. def prolog(): (Option[String], Option[String], Option[Boolean])

    &lt;? prolog ::= xml S? // this is a bit more lenient than necessary.

    &lt;? prolog ::= xml S? // this is a bit more lenient than necessary...

    definition classes: MarkupParser
  86. def pubidLiteral(): String

    definition classes: MarkupParser
  87. def push(entityName: String): Unit

    definition classes: MarkupParser
  88. def pushExternal(systemId: String): Unit

    definition classes: MarkupParser
  89. def putChar(c: Char): StringBuilder

    append Unicode character to name buffer

    append Unicode character to name buffer

    attributes: protected
    definition classes: MarkupParser
  90. def replacementText(entityName: String): Source

    definition classes: MarkupHandler
  91. def reportSyntaxError(str: String): Unit

    definition classes: MarkupParser → MarkupParserCommon
  92. def reportSyntaxError(pos: Int, str: String): Unit

    definition classes: MarkupParser → MarkupParserCommon
  93. def reportValidationError(pos: Int, str: String): Unit

    definition classes: MarkupParser
  94. def returning[T](x: T)(f: (T) ⇒ Unit): T

    Apply a function and return the passed value

    Apply a function and return the passed value

    definition classes: MarkupParserCommon
  95. def saving[A, B](getter: A, setter: (A) ⇒ Unit)(body: ⇒ B): B

    Execute body with a variable saved and restored after execution

    Execute body with a variable saved and restored after execution

    definition classes: MarkupParserCommon
  96. def synchronized[T0](arg0: T0): T0

    attributes: final
    definition classes: AnyRef
  97. def systemLiteral(): String

    attribute value, terminated by either ' or ".

    attribute value, terminated by either ' or ". value may not contain &lt;. AttValue ::= ' { _ } ' | " { _ } "

    definition classes: MarkupParser
  98. def text(pos: Int, txt: String): Text

    callback method invoked by MarkupParser after parsing text.

    callback method invoked by MarkupParser after parsing text.

    definition classes: ConstructingHandlerMarkupHandler
  99. def textDecl(): (Option[String], Option[String])

    prolog, but without standalone

    prolog, but without standalone

    definition classes: MarkupParser
  100. var tmppos: Int

    holds temporary values of pos

    holds temporary values of pos

    definition classes: MarkupParser → MarkupParserCommon
  101. def toString(): String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: AnyRef → Any
  102. def truncatedError(msg: String): Nothing

    definition classes: MarkupParser → MarkupParserCommon
  103. def unparsedEntityDecl(name: String, extID: ExternalID, notat: String): Unit

    definition classes: MarkupHandler
  104. def unreachable: Nothing

    attributes: protected
    definition classes: MarkupParserCommon
  105. def wait(): Unit

    attributes: final
    definition classes: AnyRef
  106. def wait(arg0: Long, arg1: Int): Unit

    attributes: final
    definition classes: AnyRef
  107. def wait(arg0: Long): Unit

    attributes: final
    definition classes: AnyRef
  108. def xAttributeValue(): String

    definition classes: MarkupParserCommon
  109. def xAttributeValue(endCh: Char): String

    attribute value, terminated by either ' or ".

    attribute value, terminated by either ' or ". value may not contain <.

    definition classes: MarkupParserCommon
  110. def xAttributes(pscope: NamespaceBinding): (MetaData, NamespaceBinding)

    parse attribute and create namespace scope, metadata [41] Attributes ::= { S Name Eq AttValue }

    parse attribute and create namespace scope, metadata [41] Attributes ::= { S Name Eq AttValue }

    definition classes: MarkupParser
  111. def xCharData: NodeSeq

    '&lt;! CharData ::= [CDATA[ ( {char} - {char}"]]&gt;"{char} ) ']]&gt;'

    '&lt;! CharData ::= [CDATA[ ( {char} - {char}"]]&gt;"{char} ) ']]&gt;'

    see [15]

    definition classes: MarkupParser
  112. def xCharRef: String

    definition classes: MarkupParserCommon
  113. def xCharRef(it: Iterator[Char]): String

    definition classes: MarkupParserCommon
  114. def xCharRef(ch: () ⇒ Char, nextch: () ⇒ Unit): String

    CharRef ::= "&#" '0'.

    CharRef ::= "&#" '0'..'9' {'0'..'9'} ";" | "&#x" '0'..'9'|'A'..'F'|'a'..'f' { hexdigit } ";"

    see [66]

    definition classes: MarkupParserCommon
  115. def xComment: NodeSeq

    Comment ::= '&lt;!--' ((Char - '-') | ('-' (Char - '-')))* '--&gt;'

    Comment ::= '&lt;!--' ((Char - '-') | ('-' (Char - '-')))* '--&gt;'

    see [15]

    definition classes: MarkupParser
  116. def xEQ: Unit

    scan [S] '=' [S]

    scan [S] '=' [S]

    definition classes: MarkupParserCommon
  117. def xEndTag(startName: String): Unit

    [42] '<' xmlEndTag ::= '<' '/' Name S? '>'

    [42] '<' xmlEndTag ::= '<' '/' Name S? '>'

    definition classes: MarkupParserCommon
  118. def xEntityValue(): String

    entity value, terminated by either ' or ".

    entity value, terminated by either ' or ". value may not contain &lt;. AttValue ::= ' { _ } ' | " { _ } "

    definition classes: MarkupParser
  119. def xHandleError(that: Char, msg: String): Unit

    definition classes: MarkupParser → MarkupParserCommon
  120. def xName: String

    actually, Name ::= (Letter | '_' | ':') (NameChar)* but starting with ':' cannot happen Name ::= (Letter | '_') (NameChar)*

    actually, Name ::= (Letter | '_' | ':') (NameChar)* but starting with ':' cannot happen Name ::= (Letter | '_') (NameChar)*

    see [5] of XML 1.0 specification

    pre-condition: ch != ':' // assured by definition of XMLSTART token post-condition: name does neither start, nor end in ':'

    definition classes: MarkupParserCommon
  121. def xProcInstr: NodeSeq

    '<?' ProcInstr ::= Name [S ({Char} - ({Char}'>?' {Char})]'?>'

    '<?' ProcInstr ::= Name [S ({Char} - ({Char}'>?' {Char})]'?>'

    see [15]

    definition classes: MarkupParserCommon
  122. def xSpace: Unit

    scan [3] S ::= (#x20 | #x9 | #xD | #xA)+

    scan [3] S ::= (#x20 | #x9 | #xD | #xA)+

    definition classes: MarkupParserCommon
  123. def xSpaceOpt: Unit

    skip optional space S?

    skip optional space S?

    definition classes: MarkupParserCommon
  124. def xTag(pscope: NamespaceBinding): (String, (MetaData, NamespaceBinding))

    parse a start or empty tag.

    parse a start or empty tag. [40] STag ::= '<' Name { S Attribute } [S] [44] EmptyElemTag ::= '<' Name { S Attribute } [S]

    attributes: protected
    definition classes: MarkupParserCommon
  125. def xTakeUntil[T](handler: (Int, String) ⇒ T, positioner: () ⇒ Int, until: String): T

    Take characters from input stream until given String "until" is seen.

    Take characters from input stream until given String "until" is seen. Once seen, the accumulated characters are passed along with the current Position to the supplied handler function.

    attributes: protected
    definition classes: MarkupParserCommon
  126. def xText: String

    parse character data.

    parse character data. precondition: xEmbeddedBlock == false (we are not in a scala block)

    definition classes: MarkupParser
  127. def xToken(that: Seq[Char]): Unit

    definition classes: MarkupParserCommon
  128. def xToken(that: Char): Unit

    definition classes: MarkupParserCommon
  129. def xmlProcInstr(): MetaData

    &lt;? prolog ::= xml S .

    &lt;? prolog ::= xml S ... ?&gt;

    definition classes: MarkupParser