I am trying to parse a xml document and extract certain information. I have looked around quite a bit and haven't been able to find anything that would suit my needs.

the sample xml file would look like this:

<contact>
<name> Daffy Duck </name>
<street> 15 Rodeo Drive </street>
<city> Santa Monica</city>
<state> California</state>
<zip> 90210</zip>
</contact>

There would be multiple contacts in the file with this format. I am trying to extract and output only certain contacts depending on what zip code, state, city etc they live in. I want the code to be workable in C++ format. If anyone knows a forum or another thread with a similar problem please post the link! Any help is much appreciated!

Be a part of the DaniWeb community

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