XML
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
- Self type
-
XML.type
Members list
Value members
Concrete methods
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
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
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Loads XML Document.
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
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
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
Attributes
- Inherited from:
- XMLLoader
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
Attributes
- Inherited from:
- XMLLoader