I need a routine to insert user input string to xml document. I found
sometime there is some unprintable characters in input strings, like 0x02,
is there a function that can filter out those characters?
thanks 4 1205
Replace(string, oldChar, newChar)
"davidw" <da****@affinisys.com> wrote in message
news:e%****************@TK2MSFTNGP10.phx.gbl... I need a routine to insert user input string to xml document. I found sometime there is some unprintable characters in input strings, like 0x02, is there a function that can filter out those characters?
thanks
:) that is a quick answer, but I want to specific function which could
filter out all non-xml characters.
"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Replace(string, oldChar, newChar)
"davidw" <da****@affinisys.com> wrote in message news:e%****************@TK2MSFTNGP10.phx.gbl... I need a routine to insert user input string to xml document. I found sometime there is some unprintable characters in input strings, like
0x02, is there a function that can filter out those characters?
thanks
You'll need to be more specific since XML can have almost any character in
it.
"davidw" <da****@affinisys.com> wrote in message
news:ua*************@TK2MSFTNGP11.phx.gbl... :) that is a quick answer, but I want to specific function which could filter out all non-xml characters.
"Scott M." <s-***@BADSPAMsnet.net> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Replace(string, oldChar, newChar)
"davidw" <da****@affinisys.com> wrote in message news:e%****************@TK2MSFTNGP10.phx.gbl... I need a routine to insert user input string to xml document. I found sometime there is some unprintable characters in input strings, like 0x02, is there a function that can filter out those characters?
thanks
Typically you would review all data that is destined for xml for the invalid
xml characters. They are like <>& , you can find the rest anywhere. You
would then convert these characters to xml friendly.
"davidw" <da****@affinisys.com> wrote in message
news:e%****************@TK2MSFTNGP10.phx.gbl... I need a routine to insert user input string to xml document. I found sometime there is some unprintable characters in input strings, like 0x02, is there a function that can filter out those characters?
thanks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: aevans1108 |
last post by:
Greetings All
If this is the wrong place to post this question, please give me a push
in the right direction. Thanks.
I know there has to be a simpler way to do this, but this is as simple
a...
|
by: SHC |
last post by:
Hi all,
I have a VC++ .NET 2003 - Windows XP Pro PC. I created a Win32 console
application in my VC++ .NET 2003 and copied validateDOM.cpp, books.xml and
books.xsd (see the attached files below)...
|
by: Ali-R |
last post by:
Hi all,
I am getting a CSV file like this from our client:
"C1","2","12344","Mr","John","Chan","05/07/1976".........
I need to validate **each filed value** against a set of rules ,for...
|
by: Martin |
last post by:
Hi,
I am implemeting a form in asp.net.
The form is quite large and the validation is reasonably complex, so I have
decieded to implement my own validation rather than use any custon...
|
by: Jonny |
last post by:
Hi,
I'm trying to validate my xml against a xsd but I can't get it to work.
Originally, I wanted to validate an xml string but since I didn't get that
to work I tried to validate an xml file...
|
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,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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
|
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...
|
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...
|
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,...
|
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...
|
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: 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...
| |