In order to use some third-party libraries (specifically Apache XML Security), I need to populate org.w3c.dom.Document objects from IS node objects.
Has anyone written a java service that does this efficiently? I know I can convert my IS nodes to strings, convert the strings to InputStreams and create org.w3c.dom.Document objects from InputStreams, but I’m looking for a more elegant solution if one exists.
Ideally, I would go from a com.wm.app.b2b.server.SOAPMessage object to a DOM Document in order to easily work with SOAP messages containing XML Signatures or content encrypted with XML Encryption.
Supposedly, a future release of IS would upgrade IS Nodes to be DOM level-II compliant, which should make this a bit easier, but for now…