extract a portion of XML file using DOM

Is possible to extract a portion of XML file as it is using DOM.

Discussion:
--------------- XML file -----------------
<personal>
<name>JamesBond</name>
<myaddress>678 watergr drive </myaddress>

<miscellanoues>
<dream>XML</dream>
<hobby>billiards<hobby>
</miscellanoues>

</personal>
---------------------XML file ends-----------
Question:
Using DOM is it possible to extract value of element <miscellanoues>, say
using some form of getElementsByTagName(),
in to string as,(a chunk of XML file as it is)
String strmiscellanoues =myDOM.(some form
of)getElementsByTagName(miscellanoues)
Result:strmiscellanoues=<dream>XML</dream><hobby>billiards<hobby>
 Is this possible ?


I would appreciate your answer.
thanks,
Andrew

Received on Thursday, 5 July 2001 15:45:47 UTC