.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Newbee on XML needes help

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :ASP.Net
Hi I'm a newbee on XML and I facing a problemMy XML string:<resposta> <totalSetor>78</totalSetor> <totalAgencia>125</totalAgencia> <senhas> <item id=1> <codigo>1</codigo> <descricao>setor cc</descricao> </item> <item id=2> <codigo>2</codigo> <descricao>setor poup</descricao> </item> </senhas></resposta> I'm using the following code to read the xml elementsConsole.Write(String.Format("totalSetor = {0}{1}", xml.GetElementsByTagName("totalSetor").Item(0).InnerText, Environment.NewLine));Console.Write(String.Format("totalAgencia = {0}{1}", xml.GetElementsByTagName("totalAgencia").Item(0).InnerText, Environment.NewLine); But I'm stuck on how to read 'senhas' nodes and its inner elements. could someone give me some sample or points me to a good tutorial?Thanks in advance

View Complete Post

More Related Resource Links

newbee: How to start a workflow from a wcf service (not host a workflow in a WCF service)


Hi. I'm a newbee on this workflow technology and I have the following problem:

I have a State Machine workflow that is hosted in a form application. A user starts the workflow through this application. The workflow executes some activities inside the 'Begin' state. At certain point, after the activities were executed, the workflow stops and the state is changed to NeedToApproval state.

A user using an application on a wireless device (for example a tablet) is pooling a WCF webservice asking for persons that needs loan approval. When the WS send a Person object (that cointains the workflow instanceId inside it), all data of this person is shown on and then the user can click on "Approve' button.

What I want is:When the button is clicked, I want to resume the workflow from the NeedToApprovalstate to the end, executing activities that are inside of this state.

I'm stuck onhow to integrate this two things. I'm quite sure this is not the case of host the workflow in a WCF service, because it is hosted in an form application.

How to do that? Create a regular WCF application and call the workflow from it? But how?

Could someone give some help or advice or points me some sampleS?


Thanks in advance and sorry about my bad English.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend