| org.dbunit.dataset.CachedDataSet org.dbunit.dataset.xml.XmlDataSet
XmlDataSet | public class XmlDataSet extends CachedDataSet (Code) | | Reads and writes original XML dataset document. This format
is very verbiose and must conform to the following DTD:
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT dataset (table+)>
<!ELEMENT table (column*, row*)>
<!ATTLIST table
name CDATA #REQUIRED
>
<!ELEMENT column (#PCDATA)>
<!ELEMENT row (value | null | none)*>
<!ELEMENT value (#PCDATA)>
<!ELEMENT null EMPTY>
author: Manuel Laflamme version: $Revision: 554 $ since: Feb 17, 2002 |
Constructor Summary | |
public | XmlDataSet(Reader reader) Creates an XmlDataSet with the specified xml reader. | public | XmlDataSet(InputStream in) Creates an XmlDataSet with the specified xml input stream. |
Method Summary | |
public static void | write(IDataSet dataSet, OutputStream out) Write the specified dataset to the specified output stream as xml. | public static void | write(IDataSet dataSet, Writer writer) Write the specified dataset to the specified writer as xml. | public static void | write(IDataSet dataSet, Writer writer, String encoding) Write the specified dataset to the specified writer as xml. |
|
|