How to implement code for below xml file
<root>
<keys>
<key>
<Question>Is the color of the car</Question>
<Ans>black?</Ans>
</key>
<key>
<Question>Is the color of the car</Question>
<Ans>black?</Ans>
</key>
<key>
<Question>Is the news paper </Question>
<Ans>wallstreet?</Ans>
</key>
<key>
<Question>fragrance odor</Question>
<Ans>Lavendor?</Ans>
</key>
<key>
<Question>Is the baggage collector available</Question>
<Ans></Ans>
</key>
</keys>
</root>
Display on the screen as:
List form
Is the color of the car black? Check box
Is the baggage collector available? Check box
If the check box is checked – Yes otherwise value is no.
On save button: we need to save it into a xml file. So any one help me to solve the problem.
By your question it appears you want to fetch contents of XML. For that you need to parse the XML. Create an XMLClass.java
Then in other class call this getXML function
declare int s and int y with some value
}