Re: [Servingxml-help] RecordBuilder
Brought to you by:
danielaparker
From: Daniel P. <dan...@sy...> - 2007-04-01 04:15:41
|
Not directly, but you can create a SAXSource as ServiceContext context; Record record; SAXSource source = new SAXSource(record.createXmlReader(context),new InputSource()); and then use the Java JAXP classes to transform the SAXSource into a DOMResult, containing the DOM node. Something like TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(); DOMResult result = new DOMResult(); transformer.transform(source,result); Node node = result.getNode(); -- Daniel ----- Original Message ----- From: "Sandhya" <sa...@la...> To: <dan...@sy...> Sent: Saturday, March 31, 2007 5:24 PM Subject: RecordBuilder > On a separate note, can servingxml spit out DOM nodes in memory instead > of XML to an output stream. I want to pass these DOM nodes to another > business component as input. > > Regards > Sandhya > |