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

SQLDataset.WriteXml and filtering bad characters

JR
I wrote a VB .NET program that part of it is reading from a SQL Server
2000 database and outputting data to XML. Problem is when I go to
transform the XML, from time to time, the data is bad as it contains
some of the bad XML characters like those below 0x20 ()

Below is the command I'm using to do this.

SQLDataset.WriteXml("c:\temp\output.xml", XmlWriteMode.WriteSchema)

So besides except for 0x09 ( ), 0x0A ( ), and 0x0D( ) is
there a way to filter out all characters under 0x20 as it writes to the
XML text file, replacing it with a space or nothing at all?

Thanks.

JR

Jun 10 '06 #1
0 1160

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

Similar topics

11
by: DraguVaso | last post by:
Hi, I should use XML to synchronize the data from different (VB.NET) applications, and I was just wondering which Overloads of these functions ( ReadXmlSchema, ReadXml and WriteXml) goes the...
3
by: Gordon Moore | last post by:
Hi, I'm new to using xml/xslt and although I can create an xml document using the dataset.WriteXml statement, and I have created an xslt to transform the xml into the output I want, I have to...
2
by: sorCrer | last post by:
Hi Guru's, Going crazy with this problem! I fill a dataset in asp.net with a 'FOR XML AUTO' query and Output it back to the browser. > DS.WriteXml(Response.OutputStream,...
0
by: Opie | last post by:
When using DataSet.WriteXml to write out the data of a dataset, it appends d2p1 to the beginning of each of the attribute names, which causes the program to crash on a subsequent load, as the...
2
by: Christina Androne | last post by:
Hello I am using the dataset.WriteXml method to convert a dataset's content to an XML string which will be parsed later on. I initally used WriteXml with a stream parameter, then got the string...
0
by: SeanGerman | last post by:
Howdy, Is there a way to explicitly escape special characters (particularly & (&) and ' (')) when writing a data set with the WriteXml method? I know this is supposed to happen...
3
by: Harry Haller | last post by:
Hello, I want to implement a generic list which will be used to display 7 columns in a GridView. One should be able to sort, filter and page each of the 7 columns. Ideally the filter should be...
4
by: MarkusJ_NZ | last post by:
Hi, I have a text box which I have associated with an AutoCompleteExtender. e.g. <cc1:AutoCompleteExtender runat="server" ID="autoComplete1" TargetControlID="TextBox1"...
3
by: Sin Jeong-hun | last post by:
This code, DS1 = new DataSet("DataSet 1"); DataTable dt1 = new DataTable("Table 1"); DataColumn dc1 = new DataColumn("Column 1", typeof(String)); DataColumn dc2 = new DataColumn("Column 2",...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
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,...

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.