Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Newsgroups | comp.text.xml |
|---|---|
| Date | 2014-12-26 03:20 -0800 |
| Message-ID | <a9e0523f-3ee3-4a45-9307-e4826de6f72b@googlegroups.com> (permalink) |
| Subject | XML Serialization |
| From | javaidiqbal6@yahoo.co.uk |
To serialize you use the serializer.Serialize declaration for you to execute the serialize method. To deserialize you also make use of xmlserializer object that is designed in exactly the same way as for serialization. To deserialize you employ the serializer.Deserialize statement so as to execute the deserialize method. To transform your xml from a stream, TextReader or XmlReader to an object, you apply the deserialize method that will return a basic object that will then end up being cast to the appropriate type. This data that is contained in your objects can easily be described by using normal computer programming constructs like classes, fields, properties, arrays, primitive types, as well as embedded xml, by way of the XmlElement and XmlAttribute objects. For people who're dealing with an xml schema, you need to use your xsd.exe to develop a pair of classes that will be strongly typed to your schema and are annotated with attributes, this makes it extremely straightforward to parse and write your xml stream and additionally making sure your xml stream conforms to your xml schema. http://www.liquid-technologies.com/Tutorials/XmlSchemas/XsdTutorial_01.aspx
Back to comp.text.xml | Previous | Next | Find similar
XML Serialization javaidiqbal6@yahoo.co.uk - 2014-12-26 03:20 -0800
csiph-web