[TriLUG] OT: Query/edit XML file
Robert Dale
robdale at gmail.com
Mon Apr 20 14:19:37 EDT 2009
On Mon, Apr 20, 2009 at 2:00 PM, Matthew Opoka <matthew at opoka.name> wrote:
>
> My application dumps a rather large XML file with DTD headers and I need to query(regex) and edit the file so it can be re-imported. Does anyone know the easiest and best way to accomplish this task other than with vi line by line?
> The query would be something like this:
> Search for objects with type=hosts and name=hostname and value=HOSTA where hostname only has one value. If found, then add a new lower case variation(hosta) value and update the object action from declared to updated.
>
That's exactly what XSLT does.
--
Robert Dale
Sent from Durham, NC, United States
More information about the TriLUG
mailing list