XML Plugin Question
Hi All,
i want to insert a line in an XML file. I use the XML Plugin -> XML plugin
The XML file looks like:
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<adtf:configuration xmlns:adtf="adtf">
<general_settings>
<property name="gui_refresh_rate" value="25"/>
</general_settings>
<module_directories>
</module_directories>
<template_directories/>
</adtf:configuration>
Now i want to insert:
<directory path="C:\program files\Test"/>
between
<module_directories>
</module_directories>
I tried this piece of code
${xml::FindNextElement} "module_directories" $0 $1
${xml::CreateNode} '<directory path="C:\program files\Test"/>' $4
${xml::InsertAfterNode} $4 $5
The Output is:
<module_directories />
<directory path="C:\program files\Test"/>
but it should be:
<module_directories>
<directory path="C:\program files\Test"/>
</module_directories>
Any suggestions??
Regards.