Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Is there a way to get the first item from a DynamicXML object?
In my code, I check to see if the DynamicXML object contains more then one item:
count = publication.publicationAuthors.Count();
if it has more then 1 item, I just want to show the first item.
thanks for your help,
Anthony
found it:
@publication.publicationAuthors[0].InnerText
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
access first item in DynamicXML object
Hi,
Is there a way to get the first item from a DynamicXML object?
In my code, I check to see if the DynamicXML object contains more then one item:
count = publication.publicationAuthors.Count();
if it has more then 1 item, I just want to show the first item.
thanks for your help,
Anthony
found it:
@publication.publicationAuthors[0].InnerText
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.