Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can you walk us through the steps necessary to parse XML
documents?

Answer Posted / chandrasekhar

1.create a instance of DocumentBuilderFactory Object using
newInstance() method.
2.get reference to DocumentBuilder object using
newDocumentBuilder() method of DocumentBuilderFactory.
3.get reference to Document object of the xml file to be
parsed by using DocumentBuilder.parse(File xmlfile) with
File object as argument.
start using Document object to get the elements of the xml
file using getElementsByTagName(),getElementsByName()

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best rss reader?

760


How was xml created?

780


How do I run an xml file?

792


What is an xml namespace prefix?

847


What is the function of xsl?

877


Is xml a nosql?

854


How do I run an xml file in notepad?

795


What do xml editors check?

822


Why was xml created?

764


What is the relation between rss and xml?

819


How do I download a podcast from patreon?

815


How do I find the rss feed for my blog?

834


What are the parsers are supported in xml?

820


Do I have to know html or sgml before I learn xml?

731


What is text () in xpath?

877