Red Hat Bugzilla – Bug 1016751
Helper methods for Java transformer
Last modified: 2018-03-29 17:52:18 EDT
Description of problem:
Java transformation from/to XML mostly requires helper methods like getElementValue, toElement as you can see in many quickstarts. It would be nice to have some helper class or super class that will provide such boilerplate methods. I can imagine, that there could be more useful methods like these.
Tomas Rohovsky <email@example.com> made a comment on jira SWITCHYARD-1763
Instead of toElement can be used XMLHelper.getDocumentFromString(xml).getDocumentElement(). However it will be good to have XMLHelper.toElement(xml), since it is used pretty often. I have not found equivalent of getElementValue in XMLHelper.