By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,117 Members | 1,093 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,117 IT Pros & Developers. It's quick & easy.

xmltextreader invalid characters and using RegEx to bypass this

P: n/a
I read some advice given to someone here to use RegEx to get around invalid
XML characters. Goran Djuranovic asked the question in 1-21-2007. The
advice was given by Keith Patrick and Goran replied saying it was working
fine. I'm a beginner in object oriented languages.

I'm interested in getting more information on how to use the RegEx for this
purpose.

I'm getting an exception error on the read using xmltextreader when the
".value" is text containing characters such as " (meaning inches), ' (meaning
feet), 1/4, 1/2, 3/4, and degrees symbol. All these characters are contained
in double quoted text which is used when describing a legal description of a
parcel of land.

Would anyone's suggestion be to pre-read each character of the xml to
replace these characters with the escape sequence that does not cause the
exception on the xmltextreader .read? Is that what the RegEx would do for
me?

Would you have any sample .net v1.1 you'd be willing to share on how you'd
do this?

Thank you
JW
Apr 26 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.