I have an XML document , and I need to go thorugh all the nodes and get the values and store it in an object. I need to traverse through all the nodes and get the values. How do I do it.

This is my XML . Please help

<?xml version="1.0" encoding="UTF-8"?>

Well, what programming language are you using to access your XML file? In other words, are you writing a program or just using some basic XML editor to perouse your file? At any rate as an example your XPath Query would look like the following.

1. If you wanted to look up the preferredLocale - /intf:getUserAndProfileResponseTest/model:user/model:preferredLocale
2. If you wanted to look up the userId - /intf:getUserAndProfileResponseTest/model:user/model:userId

Etc, etc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.