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.
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 Params
- 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
Returns an XMLLoader whose load* methods will use the supplied SAXParser.
Returns an XMLLoader whose load* methods will use the supplied SAXParser.
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 Params
- 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
Inherited methods
loads XML from given InputStream, Reader, sysID, InputSource, or URL.
loads XML from given InputStream, Reader, sysID, InputSource, or URL.
- Inherited from
- XMLLoader
Loads XML from the given file, file descriptor, or filename.
Loads XML from the given file, file descriptor, or filename.
- Inherited from
- XMLLoader
Loads XML from the given InputSource, using the supplied parser. The methods available in scala.xml.XML use the XML parser in the JDK.
Loads XML from the given InputSource, using the supplied parser. The methods available in scala.xml.XML use the XML parser in the JDK.
- Inherited from
- XMLLoader