From: Paul Lutus Date: 2006-12-03T10:30:05+09:00 Subject: Re: search and replace ishamid wrote: > Hi Paul, > > On Dec 2, 10:56 am, Paul Lutus wrote: > > If you will post a short, complete data example, even just one record > as it >> appears in your database, so we don't have to try to read between the >> lines, someone here will be happy to produce a way to filter the data in >> the way you want. > > Ok, here are 4 bibliography entries. I just did a follow-up posting > with more detail (including the full script I'm trying to modify) so > you may prefer to respond to that one. Thank you very much for your > help!. Okay, thanks for the data example. Now to move forward, could you please tell us what you want to do with it? Which parts of the data end up in the output, and in what form? You earlier said you wanted to process the XML to get a series of \head \head \head \head But I think you mean these to be placeholders for the actual data, and I can't sort out which parts of the XML are meant to end up in the "\head" elements. It would help if you could show an example of the data in the XML and its literal relocation into the desired output format. Postscript. I copied your posted data example and couldn't parse it, because there is a mismatch between opening and closing tags -- it's a simple sanity check I always perform when dealing with XML, and unfortunately the posted data isn't a complete, internally consistent XML sample. That would have allowed me to indent/format the XML and get some idea of its overall structure. Without an internally consistent XML data block with balanced tags, I can't parse the XML, and if I can't parse the XML, I can't extract any data from it in a reliable way. -- Paul Lutus http://www.arachnoid.com