[Qt-interest] how to quickly modify the value of attribute
Nguyen Huu Phuoc
nhphuoc at vn.isb.co.jp
Tue Jan 11 11:25:16 CET 2011
Why don't you use QtXML module?
QDocument call setContent to load your xml file.
Change the attribute from QDocument.
Use save method to write your QDocument again to xml file.
Hope to help you a bit.
Nguyen Huu Phuoc
阮 有 福-グエン.ヒュー.フォック
ISB VIETNAM Co., Ltd (IVC)
nhphuoc at vn.isb.co.jp
________________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of pengliang(??)
Sent: Wednesday, October 20, 2010 9:29 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] how to quickly modify the value of attribute
Hi All:
I don’t whether there is a good method to find an attribute and modify its value. (Normal method: open a xml with read only
And open new xml with write only, scan former xml one by one and write to new xml one by one, if find the attribute, write new value of attribute to new xml.)
I don’t want use this method. Anybody has other method?
Anybody has experience?
Thanks
彭亮 Ken
____________________________________________________________________________
This email is intended for the sole use of the intended recipient/s. Any review or copying or distribution or forwarding of any or all of the contents in this message is strictly prohibited. If you were not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
More information about the Qt-interest-old
mailing list