XML to string

wxdqz

New Member
Hi,

i got an xml doc of 10 record nodes.

with the help of a java program i parsed that and queried and retrieved 3 out of 10.
now i want to convert this 3 node to a string

i wrote an function which used xsl transformers to convert but it accepts only document, and if i used Document d = node.getParentDocument() it returns the whole xml document and if i use
Document d = ( Document ) node;
it throws an exception classcastexception.

how to convert that xml node to a document so that i can pass it to my function which uses Xsl transformers to convert.

if there s any other method to do that please help by telling my that
thanking you

saju.m
 
Back
Top