posted 20 years ago
Hi Im using this examplecode below to update an xml file with a new value. It works not so good. I therefor submiting this list and hopefully someone can help.
1. Im having problems to add an attribiute to my elemenst, Im keep getting the error "HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted". I think the idAtt2 is the right way to go, but how to append it?
2. If I comment the attr-part, the new data will end upp in my xmlfile. However there will be NONE indent even when I submit "yes". Why is that?
3. Finally, if some errors will come up it often result in an empty xmlfile. Thats no good, so if you have an better way to update an ceratin xml file with indent and the data is stored. Pls let me know.
/ Sebastian<br />No blog, No homepage, No life?