Connecting Tech Pros Worldwide Forums | Help | Site Map

ASP Load XML Issue

Newbie
 
Join Date: Mar 2007
Posts: 2
#1: Sep 19 '09
HI
we loading a page through XML load. In our page we have a piece of code which reads the XML and send it back for some reason(old code). It is working fine in Dev, But not working in SIT machines.
The logic is we have a XML in resultXML string, we are spliting it into two half and send it to a page XYZ.asp and sending back to original page.
Expand|Select|Wrap|Line Numbers
  1.      var resultXML1 = resultXML.substr(0,1990);
  2.      var resultXML2 = resultXML.substr(1990,3980);
  3. sourceFile = base_url+"XML/XMLXYZ.asp?Position=Start&TranXML="+resultXML2;
  4.      source.async = false;
  5.      source.load(sourceFile);
  6.      sourceFile = base_url+"XML/XMLXYZ.asp?Position=End&TranXML="+resultXML1;
  7.      source.async = false;
  8.      source.load(sourceFile);
  9.  
And in page XYZ.asp below the code
Expand|Select|Wrap|Line Numbers
  1. if Position = "Start" then
  2.   Session("TranXML")= ""
  3.  Session("TranXML") = TranXML 
  4. else
  5.  oldxml=Session("TranXML")
  6.  Session("TranXML") = TranXML + oldxml
  7. end if
  8. Response.Write "<ROOT/>"
  9. %>
  10.  
in the first call it is comming into the if loop and second call not comming into the else part it is comming. Why it is happened in SIT machines. It is showing an error in loading the XML. But this is happened in Dev too but it loading Else part successfully.

please help

jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#2: Sep 30 '09

re: ASP Load XML Issue


I'm not sure I understand what you are saying, but you can troubleshoot why you are handling the if logic differently by using response.write to write the conditions to the screen.

Jared
Reply