Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What are the steps necessary to parse XML documents?

user-image
Question ajoutée par Mohammed Shaban , Senior software engineering , Thiqah
Date de publication: 2016/02/14

  • Create a instance of DocumentBuilderFactory Object (newInstance() method).
  • Reference to DocumentBuilder object using newDocumentBuilder() method of DocumentBuilderFactory.
  • 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() 

Jad Sarout
par Jad Sarout , Founder & CEO , Yelostudio

Step 1 - Install a library that parses XML documents appropriate for the language you are using.

Step 2 - Use the library's API, as specified by its documentation, to parse XML

Step 3 - ...?

Step 4 - Profit

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?