Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Lloyd Alvarez   on Oct 03 In Java Category.

  
Question Answered By: Emily Brown   on Oct 03

Parse the XML file and get a reference to a Document
object. On the document object call the
getElementsByTagName(java.lang.String tagname) this
will return an NodeList. Iterate through this node
list and recreate a new DOM structure filtered values
and write the DOM structure back to the file system.
I can send you a sample code  if you tell me that
parser that you are using, is it Xerces or is it XML4J

Share: 

 
 
Didn't find what you were looking for? Find more on Help required for filtering XML using DOM parser Or get search suggestion and latest updates.


Tagged: