Insert into the middle of an XML file

(imported topic written by whoseit91)

I know it is possible to extract a section of an xml file with

q: node values of child nodes of selects “/MappableItem/PrimaryServer/Host” of xml document of file

but is it possible to insert into a subset of nodes within an xml file. Or maybe just using the preceeding text is it possible to delete the text withing two markers and and insert a block of text between those same markers </Closing Marker> in the file.

(imported comment written by BenKus)

Hi whoseit,

You can’t change a file in relevance, but you can potentially change it with an action… There are various methods to do this in a file including using relevance to re-write the file OR you might use something like vbscript to modify the xml…

Ben

(imported comment written by whoseit91)

Thanks

(imported comment written by whoseit91)

Ben Kus

Hi whoseit,

You can’t change a file in relevance, but you can potentially change it with an action… There are various methods to do this in a file including using relevance to re-write the file OR you might use something like vbscript to modify the xml…

Ben

Can you explain some of the other methods besides vbscript or js.

(imported comment written by NoahSalzman)

Here are a few examples of using Relevance and ActionScript to manipulate the contents of text files:

http://forum.bigfix.com/viewtopic.php?id=4161

http://forum.bigfix.com/viewtopic.php?id=2147

http://forum.bigfix.com/viewtopic.php?id=1483

http://forum.bigfix.com/viewtopic.php?id=1961