I'm having the following problem : am working on something that basically converts HTML into XML in order to parse it, the thing which is working perfectly. The problem is that i have this tag
which I'm being able to read successfully. Here's where my problem starts, i want to convert the above tag into
Sir, I'm not being able to do this using kXML, meaning, i can't add the attribute value="some value".
Please can you show a snippet that does this kind of stuff ???
I'm not a kXML user. But when I looked in the API documentation for the product I found there is an Element class and it has a setAttribute method. Those are the things you should use to do that task.
Vassili Vladimir
Ranch Hand
Joined: Mar 08, 2007
Posts: 1585
posted
0
Yes you are 100% right, but that method is only changing the attribute on the heap, but not reflecting on the XML file itself, so, i need a way to reflect what i have set to the XML file.
Thank you ...
Vassili Vladimir
Ranch Hand
Joined: Mar 08, 2007
Posts: 1585
posted
0
OK i solved the problem guys
If anybody wants to know how it was done, please contact me