0 Replies Latest reply on May 12, 2007 3:14 PM by RekhaPatel

    How to specify the XML Declaration for an XML variable

      I need to set the XML declaration for my XML variable as follows:
      var employees:XML =
      <?xml version="1.0" encoding="utf-8"?>
      <employee ssn="123-123-1234">
      <name first="John" last="Doe"/>
      <street>11 Main St.</street>
      <city>San Francisco</city>
      <employee ssn="789-789-7890">
      <name first="Mary" last="Roe"/>
      <street>99 Broad St.</street>

      However, if I specify <?xml version="1.0" encoding="utf-8"?>, I get a design time and compile error. If I remove it it works fine. But the server to which I send this XML is expecting the declaration. Can somebody help me with this?