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

Based on a specific XML Node value, find the Value from other Nodes

Avatar

Avatar
Validate 1
Level 2
srinit86581866
Level 2

Likes

2 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 2
srinit86581866
Level 2

Likes

2 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back
Boost 1
View profile
srinit86581866
Level 2

06-03-2019

Hello,

I need to loop trough an xml file and look for a certain fieldname(otherAddresses). There are about 6 fields named otherAddresses and each of them has a field named "PublishingTypeID". Now, depending on the value of PublishingTypeID, I have to select that specific OtherAddresses field and get the value from it's Childfields.

So, for example. If otherAddresses.publishingTypeID has a value of 2, I have to get the value of otherAddresses.lastName from that specific otherAddresses field.

The image below will probably clear up any confusion.

Could anyone help me loop through this?

1706723_pastedImage_0.png

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 2
Jean-foxfly
Level 2

Likes

13 likes

Total Posts

18 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 2
Jean-foxfly
Level 2

Likes

13 likes

Total Posts

18 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Jean-foxfly
Level 2

28-07-2020

Hi @srinit86581866 

You can do it with xPath. Try this:

//otherAddresses[@publishingTypeID="02"]/@lastName

 

Jean

Answers (0)