Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Problem with creating unbounded elements in XML

Avatar

Avatar
Validate 1
Level 1
backroom_boy
Level 1

Likes

0 likes

Total Posts

25 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
backroom_boy
Level 1

Likes

0 likes

Total Posts

25 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
backroom_boy
Level 1

23-03-2011

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.

Replies

Avatar

Avatar
Boost 50
Level 5
Hodmi
Level 5

Likes

68 likes

Total Posts

454 posts

Correct Reply

53 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Level 5
Hodmi
Level 5

Likes

68 likes

Total Posts

454 posts

Correct Reply

53 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Hodmi
Level 5

23-03-2011

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

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