Child nodes having the same name while parent nodes are different

How to deal with a scenario when child node names are same but the parent names are different. For exmaple,
1 Main Street
2 Main Street

Hi
Mayur,

Thanks for your inquiry. Could you please explain your requirement and share with us what actually are you trying to achieve?

Best Regards,

Hello Awais,
Take a look at my sample XML. There are two StreetName nodes under two different parent nodes. How to distinguish between two different StreetName? Is there a way to use XPath or a fully qualified name?

Hi
Mayur,

Thanks for the additional information. I think, you can specify fully qualified element names in the NamespacePrefix:ElementName format to be able to select nodes for example in an XmlDocument. I would suggest you please see the following article:
http://support.microsoft.com/kb/308062

I hope, this will help.

Best Regards,

Hi there,

Thanks for your inquiry.

Actually there probably isn’t any need to distungish between those two elements with the same name as they belong to different tables. Assuming you are using nested mail merge, your template just needs to look like this and the merge will work correctly:

TableStart:HomeAddress
StreetName
TableEnd:HomeAddress

TableStart:OfficeAddress
StreetName
TableEnd:OfficeAddress

Please let us know if you have any further queries.

Thanks,

Great, this should work!
Thanks, Adam!