com.japisoft.dtdparser
Interface XMLGenerator
- All Known Implementing Classes:
- RootDTDNode
- public interface XMLGenerator
Interface for generating XML document from the DTD
- Version:
- 1.0
- Author:
- (c) 2002-2003 JAPISOFT
- See Also:
RootDTDNode
Method Summary |
void |
writeDocument(java.io.PrintWriter output,
java.lang.String root,
java.lang.String dtdURI)
Generate a minimal valid XML document. |
void |
writeDocument(java.io.PrintWriter output,
java.lang.String encoding,
java.lang.String root,
java.lang.String dtdURI)
Generate a minimal valid XML document. |
ENCODING_UTF_8
public static final java.lang.String ENCODING_UTF_8
- See Also:
- Constant Field Values
ENCODING_UTF_16
public static final java.lang.String ENCODING_UTF_16
- See Also:
- Constant Field Values
ENCODING_ISO_10646_UCS_2
public static final java.lang.String ENCODING_ISO_10646_UCS_2
- See Also:
- Constant Field Values
ENCODING_ISO_10646_UCS_4
public static final java.lang.String ENCODING_ISO_10646_UCS_4
- See Also:
- Constant Field Values
ENCODING_ISO_8859_1
public static final java.lang.String ENCODING_ISO_8859_1
- See Also:
- Constant Field Values
ENCODING_ISO_8859_2
public static final java.lang.String ENCODING_ISO_8859_2
- See Also:
- Constant Field Values
ENCODING_ISO_8859_3
public static final java.lang.String ENCODING_ISO_8859_3
- See Also:
- Constant Field Values
ENCODING_ISO_8859_4
public static final java.lang.String ENCODING_ISO_8859_4
- See Also:
- Constant Field Values
ENCODING_ISO_8859_5
public static final java.lang.String ENCODING_ISO_8859_5
- See Also:
- Constant Field Values
ENCODING_ISO_8859_6
public static final java.lang.String ENCODING_ISO_8859_6
- See Also:
- Constant Field Values
ENCODING_ISO_8859_7
public static final java.lang.String ENCODING_ISO_8859_7
- See Also:
- Constant Field Values
ENCODING_ISO_8859_8
public static final java.lang.String ENCODING_ISO_8859_8
- See Also:
- Constant Field Values
ENCODING_ISO_8859_9
public static final java.lang.String ENCODING_ISO_8859_9
- See Also:
- Constant Field Values
ENCODING_ISO_2022_JP
public static final java.lang.String ENCODING_ISO_2022_JP
- See Also:
- Constant Field Values
ENCODING_Shift_JIS
public static final java.lang.String ENCODING_Shift_JIS
- See Also:
- Constant Field Values
ENCODING_EUC_JP
public static final java.lang.String ENCODING_EUC_JP
- See Also:
- Constant Field Values
writeDocument
public void writeDocument(java.io.PrintWriter output,
java.lang.String encoding,
java.lang.String root,
java.lang.String dtdURI)
throws java.io.IOException
- Generate a minimal valid XML document. You may insert an encoding using the
ENCODING_...
constants
- Parameters:
output
- final document targetencoding
- use ENCODING.. constantsroot
- the root node for the generationdtdURI
- dtd location
- Throws:
java.io.IOException
writeDocument
public void writeDocument(java.io.PrintWriter output,
java.lang.String root,
java.lang.String dtdURI)
throws java.io.IOException
- Generate a minimal valid XML document.
- Parameters:
output
- final document targetroot
- the root node for the generationdtdURI
- dtd location
- Throws:
java.io.IOException