----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Prasanna Message 7 in Discussion Hi, If your strings contain < or &, then they aren't xml, because these characters are reserved for special use in xml (namely as the beginning of a tag and the beginning of an entity name, respectively). Therefore, you will have to preprocess your strings before you can parse it using xml or xslt. There are three options: "escape" all the < and & characters by replacing them with < and & respectively (note, the semi-colons are part of the replacements). enclose the fields you pull from the database in so-called CDATA tags, which are <!CDATA[ at the beginning and ]]> at the end. This will work except for the unusual case where your data contains ]]> anywhere. disable-output-escaping (very rarely necessary, and usually a sign of insufficient understanding of the original problem). Hope this will help u. Prasanna K L Sr. Software Engineer [MCAD(CM) | MCSD.NET(Early Achiever)] ZapApp India Private Limited Level G & 1, Explorer Building, International TechPark, Whitefield Road, Bangalore - 560 066. INDIA 91-80- 5115 6050 extn. 4020 (phone) 91-80- 841 1858 (fax) [EMAIL PROTECTED] -----Original Message----- From: BDOTNET [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 9:59 AM To: BDOTNET Subject: XML Special chars New Message on BDOTNET XML Special chars Reply � Recommend Message 1 in Discussion From: apk007 Hi, �I have some text fields in windows form. User enters some data into it. I will sotre it has XML file. How can i handle Special charactors which he enters lke (&,<,< etc.) How do handle all this in XML file. I am using VB.net And XMLDOM. Regards Prasanna View other groups in this category. Also on MSN: Start Chatting�|�Listen to Music�|�House & Home�|�Try Online Dating�|�Daily Horoscopes Passport Member Services. For other questions or feedback, go to our Contact Us page. If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. Remove my e-mail address from BDOTNET. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
