Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6379459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:08:27+00:00 2026-05-25T02:08:27+00:00

I am using IXmlSerializable interface for conversion of Dataset table objects in to XML

  • 0

I am using IXmlSerializable interface for conversion of Dataset table objects in to XML format.

Please find the class example below.

public class SecondaryRNCTable: IXmlSerializable
{
    public void ReadXml(System.Xml.XmlReader reader)
    {
        IP = reader.GetAttribute("IP");
        int count = int.Parse(reader.GetAttribute("count"));
        reader.ReadStartElement();

        for (int i = 0; i < count; ++i)
        {
            reader.ReadStartElement();
            SecondaryRNC rnc = new SecondaryRNC();
            rnc.ReadXml(reader);
            Add(rnc);
        }
    }

    public void WriteXml(System.Xml.XmlWriter writer)
    {
        writer.WriteAttributeString("IP", parentDOMIP);
        writer.WriteAttributeString("count", Count.ToString());
        writer.WriteStartElement("SecondaryRNCs");

        foreach (SecondaryRNC rnc in this)
        {
            writer.WriteStartElement("SecondaryRNC");
            rnc.WriteXml(writer);
            writer.WriteEndElement();
        }
        writer.WriteEndElement();
     }
}

we add multiple datatables in a dataset say ds and ds.writeXML(GZipOutputStream, XmlWriteMode.WriteSchema) is invoked to write in outputstream. So for some tables, it also write assembly information shown below.

msdata:InstanceType=”NeighborList.SecondaryRNCTable, projectName,
Version=14.0.0.12, Culture=neutral, PublicKeyToken=c2e771ef06d8dbb7″

How can I stop this insertion of string while writing in to outputstream?

Please provide input ASAP.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:08:27+00:00Added an answer on May 25, 2026 at 2:08 am

    One option would be to pass it into an XSLT transformer, which will allow you to format the XML however you want.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the below XML, I need to figure out which person worked more hours
I've been trying to find an easy way to write XML using the XmlReader/XmlWriter.
I am trying to serialize a MailMessage object using implementation of IXmlSerializable interface. The
Using jQuery, I can find table row in the following ways. Which one is
Using C#, I need a class called User that has a username, password, active
If using custom XML Serialization ( IXmlSerialiable ), on a complex object that contains
Consider the following code: [Serializable] public class Human { public string Name { get;
I have a class that I serialize/deserialize using XmlSerializer . This class contains a
I am writing a class library which abstracts data contained in XML files on
Using jQuery's UI Tabs. This is my code. <div id=tabs> <ul> <li><a href=#tabs-1>Find a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.