Can someone please explain to me what parsing XML means? And what does an XML parser do in general?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It means “reading” the XML file/string and getting its content according to the structure, usually to use them in a program.
For example if you have this XML fragment:
you may want to use these values in a data structure:
so that, in the end:
yelds something like:
There are many ways of doing so, like DOM or SAX.
You might want to investigate XSLT and xpath as well, according to your needs.