473,410 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

XML deserialization from string

Hi,

I have an XSD and created a VB.NET class file from it. When I have an
XML file (conforming to the schema), it is straight forward to
deserialize using the class file.

I am looking for ways to deserialize when I have the XML as a string
and not in a file. Writing the string to a file and deserializing from
the file might have an adverse effect on the performance.

Anyone know of a good method to do this?

Any help will be appreciated.
Thanks,
Sampath.
Nov 12 '05 #1
2 2875
Use a StringReader to read the file and wrap that in an XmlTextReader.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Sampath" <ts******@gmail.com> wrote in message
news:ec**************************@posting.google.c om...
Hi,

I have an XSD and created a VB.NET class file from it. When I have an
XML file (conforming to the schema), it is straight forward to
deserialize using the class file.

I am looking for ways to deserialize when I have the XML as a string
and not in a file. Writing the string to a file and deserializing from
the file might have an adverse effect on the performance.

Anyone know of a good method to do this?

Any help will be appreciated.
Thanks,
Sampath.

Nov 12 '05 #2
Use a StringReader to read the file and wrap that in an XmlTextReader.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Sampath" <ts******@gmail.com> wrote in message
news:ec**************************@posting.google.c om...
Hi,

I have an XSD and created a VB.NET class file from it. When I have an
XML file (conforming to the schema), it is straight forward to
deserialize using the class file.

I am looking for ways to deserialize when I have the XML as a string
and not in a file. Writing the string to a file and deserializing from
the file might have an adverse effect on the performance.

Anyone know of a good method to do this?

Any help will be appreciated.
Thanks,
Sampath.

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: AnkitAsDeveloper [Ankit] | last post by:
Hi i am serializing a 'ref struct' object as follows : private: void Seri( String ^path, Object^ obj ) { FileStream^ fileStrm ; try { //Serialize entire object into Binary stream
3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
1
by: parrot toes | last post by:
I tried to post this question before, but there was an error when posting. I case it did get posted and in order to avoid duplication, I'll just repost a summary. I have written a dotnet client...
5
by: Greg Allen | last post by:
I am consuming a web service and using the generated Reference.cs to access the service and the objects associated with it. I have run into a problem where some inherited classes are not being...
3
by: John Glover | last post by:
To whoever can help, I've been having a problem with XML deserialization lately. I needed to serialize and deserialze two objects which inherited from Hashtable. Because IDictionary...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.