The whole day I've tried to find some way to make XML queries in C++, but with no success. I don't have much experience from XML and the last time I've made something bigger in C++ was about 7 years ago, so I don't really know what's going on there nowadays.
What I would like to do is to be able to search a XML file for some words or letters and in return get that specific element or elements which have that specific text. For example say we have a XML like this:
<parent>
<node num="123" otherattrib="example"> This node has some text </node>
<node num="234" otherattrib=""> Something here as well </node>
</parent>
And I'd like to query the xml for string "text" and it would return the node with the attribute num="123"
.
Is there a good way to do that in C++? Also are there any good libraries for this?
Edit: The platform I'm working on will be Windows for now.