Skip to main content
August 18, 2015
Question

adding xml attribute only to the first xml tag in an array using loop

  • August 18, 2015
  • 0 replies
  • 203 views

Hello all

I have an arraylist of xml tags. I want to displaynested tag in the indesgn document.

But i want to add the xml attribute name and its value only to the first xml tag.

For Ex:  <tag1 attributename=value><tag2><tag3>Hello</tag3></tag2></tag1>

I am using vb.net and i am getting through each tag using FOR EACH loop.

If i m adding the values its adding to all the tags. And that is unwanted.

Please help.

Thanks

This topic has been closed for replies.