473,387 Members | 1,549 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,387 software developers and data experts.

Extra data comes at time of serialize DataSet

Hi All,

I want to serialize an object which contain the DataTable. As DataSet
is MarshalByRef object and is serializable. I am using it directly.
Even my data is also serialize and save it to XML file.

Now as DataSet serialize, it's creating some extra information (schema
information), And i don't need that. I only want to store the data in
XML format. I don't want to store extra details like namespace etc...
As it's increase XML file size.

One thing is clear that this DataSet is a part of my object. So I can't
use DataSet.GetXML() function.

////My XML file

<dataSet>
<xs:schema id="MarkupData" xmlns=""
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="MarkupData" msdata:IsDataSet="true">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="MarkupWrapper">
<xs:complexType>
<xs:sequence>
<xs:element name="index" msdata:AutoIncrement="true"
type="xs:int" minOccurs="0" />
<xs:element name="key" msdata:Prefix="k" type="xs:string"
minOccurs="0" />
<xs:element name="eleID" msdata:Prefix="eid" type="xs:int"
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Element">
<xs:complexType>
<xs:sequence>
<xs:element name="index" msdata:AutoIncrement="true"
type="xs:int" minOccurs="0" />
<xs:element name="name" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<MarkupData>
<MarkupWrapper diffgr:id="MarkupWrapper1" msdata:rowOrder="0"
diffgr:hasChanges="inserted">
<index>0</index>
<key>IMS1</key>
<eleID>1</eleID>
</MarkupWrapper>
<MarkupWrapper diffgr:id="MarkupWrapper2" msdata:rowOrder="1"
diffgr:hasChanges="inserted">
<index>1</index>
<key>IMS1</key>
<eleID>2</eleID>
</MarkupWrapper>
<Element diffgr:id="Element1" msdata:rowOrder="0"
diffgr:hasChanges="inserted">
<index>0</index>
<name>food</name>
</Element>
<Element diffgr:id="Element2" msdata:rowOrder="1"
diffgr:hasChanges="inserted">
<index>1</index>
<name>misc</name>
</Element>
<Element diffgr:id="Element3" msdata:rowOrder="2"
diffgr:hasChanges="inserted">
<index>2</index>
<name>comp</name>
</Element>
</MarkupData>
</diffgr:diffgram>
</dataSet>

///

Thanks & Regards,
Rushi

Aug 25 '05 #1
0 1344

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

Similar topics

16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
4
by: Al Christoph | last post by:
I have a number of datasets that contains lots of engineering type data. Things are in lengths, forces, energies, times, etc etc. The datasets have two underlying natures: 1. The product dataset...
0
by: IMS.Rushikesh | last post by:
Hi All, I want to serialize an object which contain the DataTable. As DataSet is MarshalByRef object and is serializable. I am using it directly. Even my data is also serialize and save it to...
5
by: Kevin C | last post by:
I was curious to know what some developers out in the industry are doing when it comes to exposing Data access logic, specifically persistence. This is assuming that your not using an O/R framework...
3
by: Pat Alessi | last post by:
I want to use an XML data island to display editable records to a user on the cleint side. The user should be able to scroll through the records, modify any or all fields in any or all records, add...
2
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
9
by: David Harris | last post by:
Ok, so I'm semi-new to .NET, having done everything manually with SQL code back in VB6. So before I program this up completely manually again, I thought I'd ask for better ways to think through...
4
by: michael sorens | last post by:
I have successfully bound an XmlDocument to a DataGridView but all fields seem to be strings. I want to retrofit appropriate datatypes on some of the fields. Let me take this in 2 parts. Part...
5
by: AAJ | last post by:
Hi all FIRST THE BORING BITS....... I normally use a Database layer, a Business layer and a GUI layer. The GUI uses an Object data source to bind to the Business layer which in turn binds...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.