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 xsl text?

911


What is the usage of xslt element?

832


What is xml schema in html?

870


Does google have an rss reader?

889


What is a unicode character?

952


What are the elements of wsdl?

873


If xml is just a subset of sgml, can I use xml files directly with existing sgml tools?

914


Is dtd better than xml?

825


What is xml simple definition?

882


What are the advantages of using xforms over html?

868


How do I convert html to xml?

957


How do I create an xml file on a mac?

862


How do I put an rss feed on my podcast on itunes?

799


How does a template instantiated?

931


Explain how to remove a particular attribute from XML?

862