public class XMLCreator extends Object
Constructor and Description |
---|
XMLCreator() |
Modifier and Type | Method and Description |
---|---|
static Document |
createXML(Annotation annotation)
Creates XML from specified annotation.
|
static void |
serialize(File file,
Annotation annotation)
Serializes specified annotation to specified file.
|
static void |
serialize(String file,
Annotation annotation)
Serializes specified annotation to specified file.
|
public static void serialize(String file, Annotation annotation) throws ParserConfigurationException, TransformerException
file
- annotation
- ParserConfigurationException
TransformerException
public static void serialize(File file, Annotation annotation) throws ParserConfigurationException, TransformerException
file
- annotation
- ParserConfigurationException
TransformerException
public static Document createXML(Annotation annotation) throws ParserConfigurationException
annotation
- ParserConfigurationException