ASP Load XML Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gspandian
    New Member
    • Mar 2007
    • 2

    ASP Load XML Issue

    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.
    Code:
         var resultXML1 = resultXML.substr(0,1990);
         var resultXML2 = resultXML.substr(1990,3980);
    sourceFile = base_url+"XML/XMLXYZ.asp?Position=Start&TranXML="+resultXML2;
         source.async = false;
         source.load(sourceFile);
         sourceFile = base_url+"XML/XMLXYZ.asp?Position=End&TranXML="+resultXML1;
         source.async = false;
         source.load(sourceFile);
    And in page XYZ.asp below the code
    Code:
    if Position = "Start" then
      Session("TranXML")= ""
     Session("TranXML") = TranXML 
    else
     oldxml=Session("TranXML")
     Session("TranXML") = TranXML + oldxml
    end if
    Response.Write "<ROOT/>"
    %>
    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
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    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

    Comment

    Working...