Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-35073

Multiline XML literal not compiled correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Apache FalconJX 0.7.0
    • FalconJX
    • None

    Description

      The following:
      var xmlSource:XML =
      <xmlParentNode>
      <Set1>
      <child><year>2015</year></child>
      <child><year>2016</year></child>
      <child><year>2017</year></child>
      </Set1>
      <Set2>
      <child><year>2015</year></child>
      <child><year>2016</year></child>
      <child><year>2017</year></child>
      </Set2>
      </xmlParentNode>;
      becomes:
      var /** @type

      {XML}

      */ xmlSource = new XML( '<xmlParentNode>
      <Set1>
      <child><year>2015</year></child>
      <child><year>2016</year></child>
      <child><year>2017</year></child>
      </Set1>
      <Set2>
      <child><year>2015</year></child>
      <child><year>2016</year></child>
      <child><year>2017</year></child>
      </Set2>
      </xmlParentNode>') ;

      Without escaping line endings, this does not work.

      Attachments

        Activity

          People

            aharui Alex Harui
            harbs Harbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: