473,804 Members | 3,250 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to xml-serialize an heterogenous collection?

Hi,

Is it possible to xml-serialize an heterogenous collection? I mean the
situation when class B inherits class A, and I'd like to serialize (to
application settings) my BindingList<Aco llection, which references some
objects of A and B types.

thanks in advance.

-- dmitry
Aug 9 '07 #1
0 1957

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

Similar topics

4
2943
by: Jari Kujansuu | last post by:
I can successfully parse XML document using SAX or DOM and I can also validate XML document against schema. Problem is that my program should deal with user-defined schemas which means that when I parse some element from XML document I don't know until runtime the type of the element (it depends on the type used in user-defined schema). XML parser obviously validates that the value of the element is correct type but still I receive that...
4
2966
by: Mike | last post by:
Related to another topic I just posted, I wanted to discuss ways to optimize the validation of very large (>100MB) XML documents. First, I have no idea if something like this already exists; it may even be the typical implementation for all I know. At any rate, it occurs to me that the set of business rules that need to be validated against an XML document represent a limited set of nodes at any given time (while parsing through the...
5
2106
by: Gene Ellis | last post by:
Our sys op won't/can't install the server side XSLT libraries, to allow us perform server-side translations on our webserver It is a Linux machine. Is it possible to put the XML and XSL files on a different machine and have the translation take place there and then have the results given to the webserver and then it gets served out to the user? How would I accomplish something like that? Php? 3rd party software? Please let me know. Thank...
4
450
by: Peter Morris | last post by:
Newbie-ish question: I've done a little programming with XML. I can use a cascading style sheet to specify text format, such things as font, size and style. But I want something a bit more complex than this. For example, I want to put a title bar at the top of each page in my website. Rather than specify the HTML in every page, I'd like each page to include a piece of XML like this : <XML ID=TOP>
1
1987
by: DSmith1974 | last post by:
Hi All, Can anyone help with the following problem? I have a database which contains a table with a 'text' field, and the text field contains an xml document - typically 50-100K. Now I'd like to make use of SQL Server 2005s XMLData type. To do this I have created a new field of the 'xmldata' datatype, and run an SQL statement to update the contents from one field to another - hoping to end up with a complete table of xml (based on...
4
4577
by: Daniel | last post by:
Is it possible to use regular expressions inside of an xpath statement executed by System.Xml.XmlDocument.SelectSingleNode() ? string sdoc = "<foo><bar a='1'/><bar a='2'/></foo>"; System.Xml.XmlDocument pdoc = new System.Xml.XmlDocument(); pdoc.LoadXml(sdoc); System.Xml.XmlNode pnode = pdoc.SelectSingleNode("//foo/bar/matches(.,'\\d')"); string foo = pnode.InnerText; int i23 = 23 + 23;
1
2938
by: =?Utf-8?B?R292ZXJubWVudE1hbg==?= | last post by:
Hi, I am using Reflection to build a GUI based on a class create with XSD, in VB ..NET 2.0. For most elements, I can easily determine the Type and then provide the user some controls to select what data to use (they are creating an XML document essentially on the fly). But the choice element has several possible types and so it creates this itemField as object within the xs:choice-generated class: Private itemField As Object
3
1267
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I've included an xml and a dtd file in my Resources folder (This is a Winforms VB project in VS2005.) I'm planning on using the xml in Resources as a 'template', just load it and change values. The beginning code is: Dim xDoc As New XmlDocument xDoc.LoadXml(My.Resources.NameOfXMLFile) ... do some stuff to XDoc Given that, is it possible to use a DTD in Resources to validate the XML?
10
2233
by: Simon Willison | last post by:
I'm having a horrible time trying to get xml.dom.pulldom to consume a UTF8 encoded XML file. Here's what I've tried so far: <msg>Simon\xe2\x80\x99s XML nightmare</msg> """ ('START_DOCUMENT', <xml.dom.minidom.Document instance at 0x6f06c0>) ('START_ELEMENT', <DOM Element: msg at 0x6f0710>) .... UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 21: ordinal not in range(128)
3
1896
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi I need to store some configuration settings in a db using an 2 fileds ID Field and String Field The ID Field is a unique key and the string holds a xml string that store my settings Now I need to modify my configuration xml to store another parameter which
0
9708
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9588
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9161
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6857
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.