Brent Putman wrote: > > > Scott Cantor wrote: > > > I was just about to send this out, but Scott beat me to it. :-) > Here's where that code comes from: > > http://svn.middleware.georgetown.edu/view/trunk/src/org/opensaml/xml/util/XMLHelper.java?root=java-xmltooling&view=markup > > > > > These 2 methods are by and large how we serialize DOM elements in the > Java version of OpenSAML, and seems to work quite successfully with > signature and encryption.
BTW, we have a pretty print method there too, very similar to what you were doing, but we *never* use that for anything that's going to get machine processed (e.g. signature validation), it's only for dumping stuff out for humans to read, e.g for logging or for dumping to the console for debugging.