java.lang.Object
com.pervasive.datarush.util.XMLUtil
Utility methods for the manipulation of XML documents and elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentdocFromFilePath(String documentPath) static Transformerstatic voidprettyPrintToFile(File f, Document doc) Pretty print a specified XML document to a file.static StringPretty print a specified XML document to a string.
-
Constructor Details
-
XMLUtil
public XMLUtil()
-
-
Method Details
-
prettyPrintToFile
Pretty print a specified XML document to a file.- Parameters:
f- theFileto which the document should be serializeddoc- the XML document to serialize
-
prettyPrintToString
Pretty print a specified XML document to a string.- Parameters:
doc- the XML document to serialize- Returns:
- a string containing serialized XML document
-
prepareTransformer
-
docFromFilePath
- Parameters:
documentPath- Fully qualified path to the PMML / XML document.- Returns:
- the document object.
-