|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.xml.XMLHelper
public class XMLHelper
XMLHelper for XPath or Document based helper methods.
JAXBXMLHelper,
XMLIteratorFactory,
XMLNestedMapConverter| Nested Class Summary | |
|---|---|
static class |
XMLHelper.XSLTransformerConfiguration
Configuration for an TransformerFactory |
| Constructor Summary | |
|---|---|
XMLHelper()
|
|
| Method Summary | |
|---|---|
static Map<String,Object> |
newMapFromXML(CharSequence xmlContent)
Facade for XMLNestedMapConverter.newMapFromXML(CharSequence) |
static Node |
select(String xPathExpression,
Node node)
Similar to select(String, Node, ExceptionHandler) |
static Node |
select(String xPathExpression,
Node node,
ExceptionHandler exceptionHandler)
Allows to select sub Nodes by a given XPath expression |
static void |
transform(StreamSource xslt,
StreamSource xml,
StreamResult result,
ExceptionHandler exceptionHandler,
XMLHelper.XSLTransformerConfiguration xslTransformerConfiguration)
Uses the default TransformerFactory to transform the given xml StreamSource using the given xslt
StreamSource into the StreamResult |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLHelper()
| Method Detail |
|---|
public static Node select(String xPathExpression,
Node node)
select(String, Node, ExceptionHandler)
xPathExpression - node -
public static Node select(String xPathExpression,
Node node,
ExceptionHandler exceptionHandler)
Nodes by a given XPath expression
xPathExpression - node - NodeexceptionHandler - ExceptionHandler
public static Map<String,Object> newMapFromXML(CharSequence xmlContent)
XMLNestedMapConverter.newMapFromXML(CharSequence)
xmlContent -
Map
public static void transform(StreamSource xslt,
StreamSource xml,
StreamResult result,
ExceptionHandler exceptionHandler,
XMLHelper.XSLTransformerConfiguration xslTransformerConfiguration)
TransformerFactory to transform the given xml StreamSource using the given xslt
StreamSource into the StreamResult
xslt - StreamSourcexml - StreamSourceresult - StreamResultexceptionHandler - ExceptionHandlerxslTransformerConfiguration - XMLHelper.XSLTransformerConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||