Inserting Node in XML Using SAX
Hello
Everybody.
I want to insert some nodes in xml file along with some attributes as well as text data.
I have successfully inserted them using DOM.
But now i want to do it using SAX.
So can anybody here tell me, whether i can insert node in xml using SAX. And whether it is possible / feasible to use SAX for inserting / manipulating xml file.
Thanx in adavance.
Waiting for reply.
# 2
Thanx discussjava.com_n for the reply.
I searched many topics in this forum as well as in google for inserting / altering xml with SAX. And you were right we cant insert new node or alter with SAX.
But there must be some way out....
May be by reading the xml file with SAX, and saving it temp file.
Then modify through IO operations and at last writing modified file to the xml file.
Can't we do like this. Or is there any other way out...
Waiting for repy.
# 5
It's quite evident that you don't have a clue about Java and XML. Nothing wrong with that, but asking random questions on a forum isn't going to change that very fast. Read a book on the topic. Try this one, for