I have a customer posting an XML string inside a single form element to one of our ASP pages. Unfortunately, the data in the form element contains carriage returns and line feeds. It appears that their B2B software is putting those in there. I need to be able to detect those because I'm doing some validation on the first few lines of the XML string before I load it into XML Document Object Model.
For example, using the Instr method, here's how it looks now.
In between the first two XML elements, there is a carriage return and a line feed. How can I detect those so I can include them in the examination. I tried the following, but did not work.
I think another example would be how to detect carriage returns in a scrolling text box form element (like the one I'm typing into right now) using server side ASP.
Thanks a million in advance.
ToddWW
For example, using the Instr method, here's how it looks now.
Code:
IF Instr(Request.Form("xmldata"),"<?xml version=""1.0""?><!DOCTYPE Document SYSTEM ""fq1xml.dtd"">") <> 1 THEN
In between the first two XML elements, there is a carriage return and a line feed. How can I detect those so I can include them in the examination. I tried the following, but did not work.
Code:
IF Instr(Request.Form("xmldata"),"<?xml version=""1.0""?>" & chr(13) & "<!DOCTYPE Document SYSTEM ""fq1xml.dtd"">") <> 1 THEN
I think another example would be how to detect carriage returns in a scrolling text box form element (like the one I'm typing into right now) using server side ASP.
Thanks a million in advance.
ToddWW