Expand my Community achievements bar.

Problem with creating unbounded elements in XML

Avatar

Level 2

I have the same issue like here : http://forums.adobe.com/thread/706903?tstart=180 . May be someone will help . The point is : I need to make  XML file like that:

<MyXML>

     <doc  path='docpath'></doc>

      <doc path='docpath'></doc>

        .....................................................

</MyXML>

These 2 variants didn't work in my case :

1.    /process_data/MyXML/doc[number(/process_data/@counterXML)]/@path = /process_data/crcObj/object/@browseLink  -  in the right side i have the browselink , obtained from CRCResult. counterXML - the number of <doc> elements at all in XML file.

2. /process_data/MyXML/doc/@path = /process_data/crcObj/object/@browseLink  - further element overwrites previous one in XML.

Can I somehow do it using SetValue operation?

Thx in advance.

1 Reply

Avatar

Level 8

Unfortunately inserting a node with  setValue will overwrite the existing nodes:

http://forums.adobe.com/message/3417572#3417572