Re: [Htmlparser-user] is there a way to replace a childNode with different content
Brought to you by:
derrickoswald
From: Derrick O. <der...@ro...> - 2007-11-17 01:27:46
|
I don't know of an easy way. Just create a new NodeList with what you want (from the old children list and any new nodes) and set it as the new child list with setChildren (NodeList children). ----- Original Message ---- From: Randy Paries <rtp...@gm...> To: htm...@li... Sent: Friday, November 16, 2007 6:58:20 PM Subject: [Htmlparser-user] is there a way to replace a childNode with different content hello, I am parsing an html doc. what i need to do is when i find a particular tag (<object>.....</object>) i need to replace it with an Image Tag i can see how to remove a child children.remove(c) and there is a prepend, but i want to replace in the same place in the tree Any idea? thanks ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Htmlparser-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlparser-user |