I want my data objects which is in a collection to be iterated such that i want to marshall only one object at a time and written to XML .So when i go to the second element in the collection, i wana append to the existing xml.So please let me know how to do it.I'm using Castor for XML-data binding and SAX parser
Appending elements to XML dynamically using SAX parser Using SAX only you cannot append element to an XML document.
I want my data objects which is in a collection to be iterated such that i want to marshall only one object at a time and written to XML .So when i go to the second element in the collection, i wana append to the existing xml.
You can do this using castor.Castor would marshall the object graph you give as input to castor.
If i'm correct , you wana try me with going for the collections for marshalling the objects to the XML.If so the issue is volume of data i'm facing to marshal using castor since i want to make sure whatever records written to xml till that point should'nt be lost whenever some exception breaks out... Let me knnow your concerns...
Originally posted by Rahul Bhattacharjee: Appending elements to XML dynamically using SAX parser Using SAX only you cannot append element to an XML document.
I want my data objects which is in a collection to be iterated such that i want to marshall only one object at a time and written to XML .So when i go to the second element in the collection, i wana append to the existing xml.
You can do this using castor.Castor would marshall the object graph you give as input to castor.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Appending elements to XML dynamically using SAX parser