Skip to main content

Posts

Showing posts from February, 2017

DOM and SAX parser-Week5

 Create an XML document that contains 10 users information. Write a Java program, which takes User Id as input and returns the user details by taking the user information from the XML document using (a) DOM Parser and (b) SAX parser. Task (a): DOM Parser           File Name: use r s.xml         <users-details>         <user>         <userid>1111</userid>         <name>Sammulal</name>         <address>Hyderabad</address>         <gender>Male</gender>         </user>         <user>         <userid>1112</userid>  ...