public final class XMLUtil extends Object
Constructor and Description |
---|
XMLUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getTextValue(String pValue)
Returns the text value of the parameter
pValue which is expected to be well formed XML. |
static String |
stripInvalidXmlCharacters(String in) |
static InputStream |
transform(InputStream pDocument,
InputStream pStyleSheet)
Transforms the
pDocument xml document using the pStyleSheet |
static InputStream |
transform(InputStream pDocument,
InputStream pStyleSheet,
EntityResolver pResolver)
Does a XSL transformation.
|
public static InputStream transform(InputStream pDocument, InputStream pStyleSheet, EntityResolver pResolver)
pResolver
to resolve entities.pDocument
- the XML document.pStyleSheet
- the XSL.pResolver
- the entity resolver.public static InputStream transform(InputStream pDocument, InputStream pStyleSheet)
pDocument
xml document using the pStyleSheet
pDocument
- the XML document.pStyleSheet
- the XSL stylesheet.public static String getTextValue(String pValue)
pValue
which is expected to be well formed XML. If pValue
is not well formed XML, the results are undefined. Any XML tags (delimited by < and >) are removed from the
string and the resulting string is a string without any references to XML Elements.pValue
- A well formed fragment of XML, optionally with XML prolog or entity declaration.© 1998- 2018 Stibo DX