473,473 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

xmlserializer is not defined

I have the following in my vb.net smartdevice project in visual studio
2003(application is for a smartphone 2003 device):
Imports System.IO
Imports System.Xml.Serialization
Imports System.Xml
Imports System.Text
Dim s As New XmlSerializer(obj.GetType)

I have .net framework 1.1 with the .net framework sp1 patch
windows xp sp2

My error is on the last line and says "Type xmlserializer is not
defined". Anyone know why?

I think I need this because I generated a class using xsd.exe from an
xml schema I defined. Then I created a class instance, filled it with
data and now I want to write this xml object to a file(as xml) so that
I can later read it back.

Nov 21 '05 #1
4 2431
<ne****@gmail.com> schrieb:
I have the following in my vb.net smartdevice project in visual studio
2003(application is for a smartphone 2003 device):
Imports System.IO
Imports System.Xml.Serialization
Imports System.Xml
Imports System.Text
Dim s As New XmlSerializer(obj.GetType)

I have .net framework 1.1 with the .net framework sp1 patch
windows xp sp2

My error is on the last line and says "Type xmlserializer is not
defined".


Make sure your project contains a reference to "System.Xml.dll".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2
<ne****@gmail.com> schrieb
I have the following in my vb.net smartdevice project in visual
studio 2003(application is for a smartphone 2003 device):
Imports System.IO
Imports System.Xml.Serialization
Imports System.Xml
Imports System.Text
Dim s As New XmlSerializer(obj.GetType)

I have .net framework 1.1 with the .net framework sp1 patch
windows xp sp2

My error is on the last line and says "Type xmlserializer is not
defined". Anyone know why?

I think I need this because I generated a class using xsd.exe from
an xml schema I defined. Then I created a class instance, filled it
with data and now I want to write this xml object to a file(as xml)
so that I can later read it back.

Not supported in the compact framework. See the "plattforms:" hints at the
bottom of the docs on the class.

Armin

Nov 21 '05 #3
Errata:

Ooops. Ignore my message -- as Armin points out, 'XmlSerializer' is not
supported by the .NET Compact Framework.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
bummer! Anyone know how I can get my xml object to a file as xml then?

Nov 21 '05 #5

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

Similar topics

5
by: Stuart Robertson | last post by:
I am trying to find a solution that will allow me to use XmlSerializer to serialize/deserialize a collection of objects where a given object is shared between two or more other objects, and not...
2
by: Chris Aitchison | last post by:
Hello, I am attempting to have a class that I have written serialize so that it can be both passed as a parameter or return value for a webservice, and also be serialized to disk using the...
4
by: Alexis | last post by:
Hello, Is there a way of telling the XmlSerializer to ignore all namespaces when deserializing. I'm using XmlAttributeOverrides, but I have to do it for every class the OutputObject usses. Is...
12
by: SJD | last post by:
I've just read Christoph Schittko's article on XmlSerializer: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp . . . and very informative it is too....
1
by: Vladimir Semenov | last post by:
Hi, I'm trying to serialize a type contained in assembly referering to another assembly in GAC. XmlSerializer xs = new XmlSerializer( typeof(TransferParentData ) ); The code above throws...
0
by: zimmy | last post by:
Hi, we've got a strange error message while initializing a new instance of XmlSerializer. But from the beginning: We developed a component that serialize and deserialize an object to a memory...
1
by: Phil Galey | last post by:
I'm using XMLSerializer in VB.NET to serialize class-based objects to XML. It's serializing fine, except that I don't seem to have control over the order in which the various fields (properties) of...
1
by: Phil Galey | last post by:
If you're using XMLSerializer to serialize a class object to XML, is it at all possible to control the order in which the object properties are presented in the XML file?
0
by: theonlydavewilliams | last post by:
Hi there I'm hoping there's an easy answer to a (hopefully) not too long-winded issue... I'm building a C# web client using a proxy wsdl.exe'd from a wsdl file and six schemas, each in a different...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.