The docs are your friend ;-)
Try attributeNode
i.e.
Qt Code:
To copy to clipboard, switch view to plain text mode
The docs are your friend ;-)
Try attributeNode
i.e.
Qt Code:
To copy to clipboard, switch view to plain text mode
Djony (8th January 2007)
Thanks for your replies. That did it. I have another problem. When I am browsing through my tags (id,owner,requirement,module,... look at the structure of xml file in above post) I use this lineAnd I can't get any tags. Do you have any idea what could be problem? Similar line worked fine for platform tags...Qt Code:
platformDetail=platformDetail.nextSiblingElement(platformDetail.tagName()); //platformDetail is QDomElement classTo copy to clipboard, switch view to plain text mode
Once again. Check the docs:
What does that tell you? You try to get the next sibling element with the same name as the current element. Is that what you want?Returns the next sibilng element with tag name tagName if tagName is non-empty; otherwise returns any next sibling element.
Please take the time to read through the documentation, perhaps starting from here, as the qdomdocument page is a good entry point.
Bookmarks