472,983 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,983 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 1153

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",...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...

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.