Well, there IS one way, sort of. You can have one XML file that has the outer tags, with a DTD that defines and entity that references a second file that contains a sequence of XML forms, and a reference to that entity between the outer tags.
The need for two files is often reason enough to reject this approach. And, of course, it requires that your XML parser properly handle this sort of inclusion. On Saturday, May 14, 2011 11:12:50 AM UTC-7, DanH wrote: > > Can't be done. (Well, could be done, but would require some file > calisthenics. You'd need to scan through the file to find the closing > tag, figure out what record that begins with -- it might actually span > records -- then write your new tags in place of the closing tag and > restore the closing tag. It would be difficult to do all of this > using standard XML scanners, so you'd have to write your own or hack > an existing open source one. And most likely you'd not want to insert > your new tags directly in the outermost tag environment, but nested > somewhat, making for even more complicated code.) > > On May 14, 8:02 am, surya tej <[email protected]> wrote: > > Dear All, > > > > I would like to append a node to an existing XML file.I doesn't want to > > rewrite the entire XML again.I just want to append the required node. > > > > I hardly could find resources for this scenario.I badly need the > > solution.Kindly help me.It would be great if you can give the entire > source > > code. > > > > Thanks in advance. > > > > -- > > Thanks & Regards, > > > > Suryatej, > > 9247714040. > > > > Please Save paper, Save trees. > > Please don't print this email and documents unless it is really > necessary. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

