473,406 Members | 2,620 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,406 software developers and data experts.

XML Compatability

5
Hi all,

I am using the below code to write into an XML file.

Expand|Select|Wrap|Line Numbers
  1.    public void Save_Dataset_XML(DataSet ds, string flname)
  2.    {
  3.        StreamWriter myStreamWriter = new StreamWriter(@flname);
  4.        ds.WriteXml(myStreamWriter);
  5.        myStreamWriter.Close();
  6.  }
  7.  
In the above code if a dataset cell is empty it is replaced by &  as how I wanted it.

When I retrieve the XML file using the below code even &  is being displayed.
Expand|Select|Wrap|Line Numbers
  1.            ds.ReadXml(@"c:/Test.xml");
  2.            DispGrid.DataSource = ds.Tables[0];
  3.            DispGrid.DataBind();
  4.  
How do I filter HTML components from being displayed ?

Thanx for any help,

Regards,

tvks
May 11 '07 #1
1 904
TRScheel
638 Expert 512MB
Hi all,

I am using the below code to write into an XML file.

public void Save_Dataset_XML(DataSet ds, string flname)
{
StreamWriter myStreamWriter = new StreamWriter(@flname);
ds.WriteXml(myStreamWriter);
myStreamWriter.Close();
}

In the above code if a dataset cell is empty it is replaced by &  as how I wanted it.

When I retrieve the XML file using the below code even &  is being displayed.

ds.ReadXml(@"c:/Test.xml");
DispGrid.DataSource = ds.Tables[0];
DispGrid.DataBind();

How do I filter HTML components from being displayed ?

Thanx for any help,

Regards,

tvks

Expand|Select|Wrap|Line Numbers
  1. String.Replace("<", "&lt");
  2. String.Replace(">", "&gt");
May 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: WStoreyII | last post by:
I know that the main two browsers are ie and netscape. However, how do i know if browsers like aol and other abstract browser put out by isps like sbc and earthlink are compatable with asp.net. I...
6
by: Nak | last post by:
Hi there, I was wondering if anyone knew of a way to maintain compatability with assemblies providing the interfaces remains the same? At the moment if I re-compile an assembly without actually...
0
by: SenthilVel | last post by:
hi I have my application built with Dotnet Framework 1.1 and now i can see most of clients having both the versions 2.0 and 1.1 in their systems, i get an issue when i run my 1.1 application . ...
1
by: abbu | last post by:
Hi, Can anybody explain the difference between standard and compatability mode compilatin in C++? Regards, abbu
0
by: David | last post by:
I am trying to migrate a .net 1.1 Web Application to a 2.0 Web Application. I am experiencing issues when putting a strongly typed dataset into session, and then navigation to a page where...
4
by: zak | last post by:
we have a suite of products that have a number of shared assemblies. During development and support the shared assemblies code will change . I want to control the versioning, so if the code chnages...
1
by: internet.system.error | last post by:
Hello, I write the casual Java code, and to make life easier at work I´ve decided to write a C# application that reads two excel files and does the usual number crunching and spits out a new file....
1
by: jsmall | last post by:
Hi, We currently have a fairly old product, which was originally only compatible with SQL 2000. When we upgraded our server to SQL 2005, the client product gave us a "This product is not...
2
by: riaveedon | last post by:
Is there any conveter or generator to do browser compatability for stylesheets easily
10
by: Bobby | last post by:
Hi, The organisation I work for is on the verge of buying Microsoft Office 2007 Pro Plus OLP NL. We currently use Office Pro 2003. Our business system is written in Access 2003 with a SQL Server...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
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...

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.