using xml in cf

Discussion in 'Programming' started by anniejolly, Apr 26, 2010.

  1. #1
    I am creating an xml document using <cfscript> tag as follows.

    var Xmldoc1="";
    Xmldoc1="<?xml version='1.0' encoding='utf-8'?>";
    Xmldoc1=Xmldoc1 &"<root_node>";
    ............

    I am unable to validate it as the resultant xml string 'xmldoc1' adds empty spaces in the beginning of the root node. Pls advise
     
    anniejolly, Apr 26, 2010 IP
  2. pierre

    pierre Active Member

    Messages:
    71
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    98
    #2
    pierre, Apr 26, 2010 IP