Users Pricing

forum

Home Forums Extract XML Data from String – MindStick

Extract XML Data from String

Anonymous User 2426 27 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.


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md