MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.


I'm not curious

Reading xml stream using C#?

0
Started on: 04 December 12
Participants: 1

I am getting xml stream from an application. How to parse that stream directly and how to load it to dataset?

 [WebInvoke(UriTemplate = "UpdateFile/{id}", Method = "POST")] public bool UpdateTestXMLFile(string id, Stream createdText) { string filenamewithpath = System.Web.HttpContext.Current.Server.MapPath(@"~/files/" + id+".xml"); System.IO.File.WriteAllBytes(filenamewithpath, Util.ReadFully(createdText)); }

I am getting xml stream from an application. How to parse that stream directly and how to load it to dataset?

[WebInvoke(UriTemplate = "UpdateFile/{id}", Method = "POST")] public bool UpdateTestXMLFile(string id, Stream createdText) { string filenamewithpath = System.Web.HttpContext.Current.Server.MapPath(@"~/files/" + id+".xml"); System.IO.File.WriteAllBytes(filenamewithpath, Util.ReadFully(createdText)); }

This challenge is listed under Development & Implementations Community

Related Posts:

Initiator

Michelle
Michelle
  Follow

Hi, I am a developer and love building up business applications with very a great user experience. Cheers

1 Suggestion

  1. 04 December 12
    0

    You can parse your XML stream using XML reader, go to http://msdn.microsoft.com/en-us/library/cc189056(v=vs.95).aspx for detailed steps.

Awards & Accolades for MyTechLogy
Winner of
REDHERRING
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top