FactoryAdapter

scala.xml.parsing.FactoryAdapter
abstract class FactoryAdapter extends DefaultHandler2, XMLLoader[Node]

SAX adapter class, for use with Java SAX parser. Keeps track of namespace bindings, without relying on namespace handling of the underlying SAX parser (but processing the parser's namespace-related events if it is namespace-aware).

Attributes

Graph
Supertypes
trait XMLLoader[Node]
trait DeclHandler
trait ErrorHandler
trait DTDHandler
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Abstract methods

def createComment(characters: String): Seq[Comment]

creates a new comment node.

creates a new comment node.

Attributes

def createNode(pre: String, elemName: String, attribs: MetaData, scope: NamespaceBinding, chIter: List[Node]): Node

creates an new non-text(tree) node.

creates an new non-text(tree) node.

Attributes

Returns

a new XML element.

def createPCData(text: String): PCData

creates a PCData node.

creates a PCData node.

Attributes

Returns

a new PCData node.

def createProcInstr(target: String, data: String): Seq[ProcInstr]

creates a new processing instruction node.

creates a new processing instruction node.

Attributes

def createText(text: String): Text

creates a Text node.

creates a Text node.

Attributes

Returns

a new Text node.

def nodeContainsText(localName: String): Boolean

Tests if an XML element contains text.

Tests if an XML element contains text.

Attributes

Returns

true if element named localName contains text.

Concrete methods

override def attributeDecl(eName: String, aName: String, `type`: String, mode: String, value: String): Unit

Attributes

Definition Classes
def captureText(): Unit

Captures text or cdata.

Captures text or cdata.

Attributes

override def characters(ch: Array[Char], offset: Int, length: Int): Unit

Capture characters, possibly normalizing whitespace.

Capture characters, possibly normalizing whitespace.

Attributes

Definition Classes
override def comment(ch: Array[Char], start: Int, length: Int): Unit

Comment.

Comment.

Attributes

Definition Classes
override def elementDecl(name: String, model: String): Unit

Attributes

Definition Classes
override def endCDATA(): Unit

End of a CDATA section.

End of a CDATA section.

Attributes

Definition Classes
override def endDTD(): Unit

Attributes

Definition Classes
override def endDocument(): Unit

Attributes

Definition Classes
override def endElement(uri: String, _localName: String, qname: String): Unit

End element.

End element.

Attributes

Throws
Definition Classes
override def endEntity(name: String): Unit

Attributes

Definition Classes
override def endPrefixMapping(prefix: String): Unit

Attributes

Definition Classes
override def externalEntityDecl(name: String, publicId: String, systemId: String): Unit

Attributes

Definition Classes
override def ignorableWhitespace(ch: Array[Char], offset: Int, length: Int): Unit

Attributes

Definition Classes
override def internalEntityDecl(name: String, value: String): Unit

Attributes

Definition Classes
def loadDocument(inputSource: InputSource, xmlReader: XMLReader): Document

Load XML document from the inputSource using the xmlReader.

Load XML document from the inputSource using the xmlReader.

Attributes

override def notationDecl(name: String, publicId: String, systemId: String): Unit

Attributes

Definition Classes
override def processingInstruction(target: String, data: String): Unit

Processing instruction.

Processing instruction.

Attributes

Definition Classes
override def setDocumentLocator(locator: Locator): Unit

Attributes

Definition Classes
override def skippedEntity(name: String): Unit

Attributes

Definition Classes
override def startCDATA(): Unit

Start of a CDATA section.

Start of a CDATA section.

Attributes

Definition Classes
override def startDTD(name: String, publicId: String, systemId: String): Unit

Attributes

Definition Classes
override def startDocument(): Unit

Attributes

Definition Classes
override def startElement(uri: String, _localName: String, qname: String, attributes: Attributes): Unit

Attributes

Definition Classes
override def startEntity(name: String): Unit

Attributes

Definition Classes
override def startPrefixMapping(prefix: String, uri: String): Unit

Attributes

Definition Classes
override def unparsedEntityDecl(name: String, publicId: String, systemId: String, notationName: String): Unit

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
XMLLoader

Attributes

Inherited from:
DefaultHandler

Attributes

Inherited from:
DefaultHandler

Attributes

Inherited from:
DefaultHandler2
def load(reader: Reader): T

Attributes

Inherited from:
XMLLoader
def load(inputStream: InputStream): T

Attributes

Inherited from:
XMLLoader
def load(sysId: String): T

Attributes

Inherited from:
XMLLoader
def load(url: URL): T

Attributes

Inherited from:
XMLLoader
def load(inputSource: InputSource): T

Attributes

Inherited from:
XMLLoader
def loadDocument(reader: Reader): Document

Attributes

Inherited from:
XMLLoader
def loadDocument(inputStream: InputStream): Document

Attributes

Inherited from:
XMLLoader

Attributes

Inherited from:
XMLLoader

Attributes

Inherited from:
XMLLoader
def loadDocument(inputSource: InputSource): Document

Loads XML Document.

Loads XML Document.

Attributes

Inherited from:
XMLLoader
def loadFile(fileDescriptor: FileDescriptor): T

Attributes

Inherited from:
XMLLoader
def loadFile(file: File): T

Attributes

Inherited from:
XMLLoader
def loadFile(fileName: String): T

Attributes

Inherited from:
XMLLoader
def loadFileDocument(fileDescriptor: FileDescriptor): Document

Attributes

Inherited from:
XMLLoader

Attributes

Inherited from:
XMLLoader
def loadFileDocument(fileName: String): Document

Attributes

Inherited from:
XMLLoader
def loadFileNodes(fileDescriptor: FileDescriptor): Seq[Node]

Attributes

Inherited from:
XMLLoader
def loadFileNodes(file: File): Seq[Node]

Attributes

Inherited from:
XMLLoader
def loadFileNodes(fileName: String): Seq[Node]

Attributes

Inherited from:
XMLLoader
def loadNodes(reader: Reader): Seq[Node]

Attributes

Inherited from:
XMLLoader
def loadNodes(inputStream: InputStream): Seq[Node]

Attributes

Inherited from:
XMLLoader
def loadNodes(sysId: String): Seq[Node]

Attributes

Inherited from:
XMLLoader
def loadNodes(url: URL): Seq[Node]

Attributes

Inherited from:
XMLLoader
def loadNodes(inputSource: InputSource): Seq[Node]

Load XML nodes, including comments and processing instructions that precede and follow the root element.

Load XML nodes, including comments and processing instructions that precede and follow the root element.

Attributes

Inherited from:
XMLLoader
def loadString(string: String): T

Attributes

Inherited from:
XMLLoader

Attributes

Inherited from:
XMLLoader
def loadStringNodes(string: String): Seq[Node]

Attributes

Inherited from:
XMLLoader
def loadXML(inputSource: InputSource, parser: SAXParser): T

Loads XML from the given InputSource, using the supplied parser or reader. The methods available in scala.xml.XML use the XML parser in the JDK (unless another parser is present on the classpath).

Loads XML from the given InputSource, using the supplied parser or reader. The methods available in scala.xml.XML use the XML parser in the JDK (unless another parser is present on the classpath).

Attributes

Inherited from:
XMLLoader
def loadXMLNodes(inputSource: InputSource, parser: SAXParser): Seq[Node]

Attributes

Inherited from:
XMLLoader

Attributes

Inherited from:
XMLLoader

Attributes

Inherited from:
XMLLoader

Attributes

Inherited from:
DefaultHandler2

Attributes

Inherited from:
DefaultHandler2

Attributes

Inherited from:
DefaultHandler

Concrete fields

List of attributes

List of attributes

Previously was a mutable Stack, but is now a mutable reference to an immutable List.

Attributes

Since

2.0.0

var curTag: String
var hStack: List[Node]

List of elements

List of elements

Previously was a mutable Stack, but is now a mutable reference to an immutable List.

Attributes

Since

2.0.0

var prolog: List[Node]
var rootElem: Node

List of namespaces

List of namespaces

Previously was a mutable Stack, but is now a mutable reference to an immutable List.

Attributes

Since

2.0.0

List of element names

List of element names

Previously was a mutable Stack, but is now a mutable reference to an immutable List.

Attributes

Since

2.0.0