1 Reply Latest reply on May 24, 2006 6:14 PM by MikerRoo

    XML Error - Illegal character or entity reference syntax

    singhpk
      Illegal character or entity reference syntax.
      Illegal character or entity reference syntax.

      The error occurred in D:\Docwf\dashboard\dsp_TestXML.cfm: line 80
      Called from D:\Docwf\dashboard\fbx_Switch.cfm: line 357
      Called from D:\Docwf\dashboard\fbx_Switch.cfm: line 1
      Called from D:\Docwf\fbx_fusebox30_CF50.cfm: line 241
      Called from D:\Docwf\fbx_fusebox30_CF50.cfm: line 1
      Called from D:\Docwf\fbx_fusebox30_CF50.cfm: line 1
      Called from D:\Docwf\index.cfm: line 37

      78 : <ProjectNo>#nqOffTimeExp.prProjNo#</ProjectNo>
      79 :
      80 : </cfloop>
      81 : </AccountPayable>
      82 :


      This is the error page and my code is attached below. As you can see in the code there are two instances where I am creating XML files. In the first case I am not getting any error but in the second case I get the error . Any ideas ???

      Thanks.


      CODE:
        • 1. Re: XML Error - Illegal character or entity reference syntax
          MikerRoo Level 1
          Change this:
          <Description>#nqOffTimeExp.iddescript#</Description>
          <FirstName>#nqOffTimeExp.eoFirst#</FirstName>
          <LastName>#nqOffTimeExp.eoLast#</LastName>
          <ChargeDate>#nqOffTimeExp.idchargesdt#</ChargeDate>
          <BillCode>#nqOffTimeExp.idbillcode#</BillCode>
          <ProjectNo>#nqOffTimeExp.prProjNo#</ProjectNo>



          To this:
          <Description># XmlFormat (nqOffTimeExp.iddescript)#</Description>
          <FirstName># XmlFormat (nqOffTimeExp.eoFirst)#</FirstName>
          <LastName># XmlFormat (nqOffTimeExp.eoLast)#</LastName>
          <ChargeDate># XmlFormat (nqOffTimeExp.idchargesdt)#</ChargeDate>
          <BillCode># XmlFormat (nqOffTimeExp.idbillcode)#</BillCode>
          <ProjectNo># XmlFormat (nqOffTimeExp.prProjNo)#</ProjectNo>