I have to set the value of "count" attribute in this xml:

```
<?xml version="1.0" encoding="UTF-8"?>
<task>
   <trigger count="myCount" interval="myInterval"/>
   <property name="myName" value="myValue"/>
   <property name="mySecondName"value="mySecondValue">
</task>

```

i'd like to change myCount value with "Foo" with a code like this (VTDXML library): 

```
            String count  = "Foo";
            if (vg.parseFile("C:\\Users\\_myPath_\\myFile.xml", true)) {
                VTDNav vn = vg.getNav();
                ap.bind(vn);
                xm.bind(vn);
                ap.selectXPath("/*[name()='task']/*[name()='trigger']");
                int i=0;
                while((i=ap.evalXPath())!=-1){
                    xm.insertAfterHead(count);
                }
                xm.output("C:\\Users\\_myPath_\\myFileWithFoo.xml");
                System.out.println(vg);
            }

```

In this way i obtain instead 

```
  <trigger count="myCount" interval="myInterval">Foo</trigger>

```

that is not my goal, because what i want is 

```
  <trigger count="Foo" interval="myInterval"/>

```