in reply to Item Identification in XML Files

Each item could be uniquely identified by an XPath expression eg: /inventory/item[2] would refer to the second one.

Whether this would be a good idea or not is another question. Concurrent (or interleaved updates) could get very messy .

Had you considered putting the data in a database? If someone really needs it in XML, you could extract it from the DB and convert it to XML at the time the need it.

Replies are listed 'Best First'.
Re: Re: Item Identification in XML Files
by Anonymous Monk on Apr 30, 2003 at 09:37 UTC

    XPath wouldn't work because the items will be switching spots in the file and I need a persistant way of identifying them. I did also consider the database, but I'm using a few tools that require xml input, so the conversions to xml and back again would be too costly. Thanks for the reply though, I'm kind of just thinking out loud here, so any suggestions are appreciated :)