Is there a way to validate xml string? thanks!

  • Thread starter Thread starter davidw
  • Start date Start date
D

davidw

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.
 
You'll need to be more specific since XML can have almost any character in
it.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top