Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Others
cms.evaluation
cms.general
comm.businessdesk
comm.campaigns_csf
comm.catalog
comm.datawarehousing
comm.deploy.
comm.general
comm.sdk
comm.solutionsites
comm.userprofilemgt
commerce.analysis
crm
crm.deployment
crm.developer
hiserver.general
mobility.miserver
sharep.portal.config
sharep.portal.dev
sharep.portal.docmgmt.
sharep.portal.installation
sharep.portal.sdk
sharep.portal.search
sharep.team.caml
sharep.teamservices
sharep.windowsservices
sharep.winservices.dev
sharepoint.portalserver
siteserv.knowledgemgr
siteserver.analysis
siteserver.commerce
siteserver.css
siteserver.general
siteserver.publishing
siteserver.sdk
siteserver.search
site-server.site-mgmt
site-server.webpost
  
 
date: Tue, 8 Jul 2008 08:25:03 -0700,    group: microsoft.public.sharepoint.windowsservices.development        back       


Return XML from UpdateListItems   
[Newbie to Sharepoint programming]

I wish to parse the returned XML from an UpdateListItems command so as to 
alert me to errors (Not sure how yet)

For example in the code snippet....

XmlNode ndReturn = listService.UpdateListItems("List_Name", elBatch);
MessageBox.Show(ndReturn.OuterXml);

As an simple example of what I would like to do is instead of showing a 
messagebox I would like to put the values for each item in a variable. (Maybe 
to write to file etc...)

Using the xml code containing details of what was updated I want to enter a 
loop

string value Val1, Val2, Val3
foreach xml element in ndReturn loop
   Val1=xml ID  
   Val2=Error Code
   Val3=Status
end loop

The above code is in semi English , how would I code this in C# ?

end loop
date: Tue, 8 Jul 2008 08:25:03 -0700   author:   BlueTip

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us