- From: Andrew Anand <anand.andrew@fedex.com>
- Date: Thu, 5 Jul 2001 14:46:24 -0500
- To: "WWW DOM" <www-dom@w3.org>
- Cc: "Andrew Anand" <andrewms@hotmail.com>, "anand" <anand.andrew@fedex.com>
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