XMLElement

M

Maya

Hi,

How do I serialize an XMLElement into a class object?

I know how to do deserialization from a stream like:

XmlSerializer xmls = new XmlSerializer(typeof(SomeType));
xmls.Deserialize(streamreader);


But can't figure out how to specify the XMLElement as the source of
the data.

Any help is really appreciated, many thanks.

Maya.
 
M

Martin Honnen

Maya said:
How do I serialize an XMLElement into a class object?

I know how to do deserialization from a stream like:

XmlSerializer xmls = new XmlSerializer(typeof(SomeType));
xmls.Deserialize(streamreader);


xmls.Deserialize(new XmlNodeReader(yourXmlElementInstance))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top