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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...