warry
14th August 2008, 13:47
I'm using the QXmlStreamReader to parse an xml doc and after I get to a tag and check for any attributes, I'd like to pull the name and value of the attribute into a QString. But I'm not sure how to do this after looking over the docs. I got this so far
QXmlStreamAttribute att = reader->attributes().at(0);
but I don't see any way to access the strings in the att, if that's really what's in there. Could anyone tell me what functions I use from this point to access the name and value of the att that got pulled from a tag?
QXmlStreamAttribute att = reader->attributes().at(0);
but I don't see any way to access the strings in the att, if that's really what's in there. Could anyone tell me what functions I use from this point to access the name and value of the att that got pulled from a tag?