forum

Home / DeveloperSection / Forums / Extract XML Data from String

Extract XML Data from String

Anonymous User203827-Jan-2014

I am having a input stream which is generated when I upload a file(XML Type). I need the XML data at code behind. I am having the xml data in string by using

                                                                                                                   

 StreamReader stream = new StreamReader(Request.InputStream);

 string x = stream.ReadToEnd();

It also contains the following data at the start of the string

------WebKitFormBoundary8na5dBbHc4ydfxVU

Content-Disposition: form-data; name="MyFile"; filename="Test 123.vfc"

Content-Type: application/octet-stream

at the end of the string

------WebKitFormBoundary8na5dBbHc4ydfxVU--

This data is not required for me.

Please help me in getting the right XML String.


Updated on 27-Jan-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By