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 are the three parts of XSL?

1086


Do xml namespace declarations apply to dtds?

993


Why xslt is used?

920


How does xml parsing work?

923


Can I use qualified names in dtds?

1050


Explain how to rename a particular element and attribute from XML using XSL?

1065


How are web feeds read?

959


What is xmlns xs?

930


Write a program to show the element is occurring as a child?

891


What is xml designed for?

890


Can xml be used as a database?

1017


How do I create a rss link?

908


Can I encode mathematics using XML?

1019


How do I convert an xml file to excel?

1033


Define xml schema?

904