XML

scala.xml.XML$
object XML extends XMLLoader[Elem]

The object XML provides constants, and functions to load and save XML elements. Use this when data binding is not desired, i.e. when XML is handled using Symbol nodes.

Attributes

Graph
Supertypes
trait XMLLoader[Elem]
class Object
trait Matchable
class Any
Self type
XML.type

Members list

Value members

Concrete methods

final def save(filename: String, node: Node, enc: String, xmlDecl: Boolean, doctype: DocType): Unit

Saves a node to a file with given filename using given encoding optionally with xmldecl and doctype declaration.

Saves a node to a file with given filename using given encoding optionally with xmldecl and doctype declaration.

Note: Before scala-xml 1.1.0, the default encoding was ISO-8859-1 (latin1). If your code depends on characters in non-ASCII latin1 range, specify ISO-8859-1 encoding explicitly.

Value parameters

doctype

if not null, write doctype declaration

enc

encoding to use

filename

the filename

node

the xml node we want to write

xmlDecl

if true, write xml declaration

Attributes

Returns an XMLLoader whose load* methods will use the supplied SAXParser.

Returns an XMLLoader whose load* methods will use the supplied SAXParser.

Attributes

Returns an XMLLoader whose load* methods will use the supplied XMLReader.

Returns an XMLLoader whose load* methods will use the supplied XMLReader.

Attributes

final def write(w: Writer, node: Node, enc: String, xmlDecl: Boolean, doctype: DocType, minimizeTags: Value): Unit

Writes the given node using writer, optionally with xml decl and doctype. It's the caller's responsibility to close the writer.

Writes the given node using writer, optionally with xml decl and doctype. It's the caller's responsibility to close the writer.

Value parameters

doctype

if not null, write doctype declaration

enc

the string to be used in xmlDecl

node

the xml node we want to write

w

the writer

xmlDecl

if true, write xml declaration

Attributes

Inherited methods

Attributes

Inherited from:
XMLLoader
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

Concrete fields

val lang: String
val space: String
val xml: String
val xmlns: String