473,383 Members | 1,868 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,383 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 2873
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.