6 Replies Latest reply on Feb 22, 2010 12:19 AM by jake_flex

    MXML is XML like?

    jake_flex Level 2

      This is more of a discussion about Flex/MXML in general, not a direct question.

       

      I have read some tutorials/books stating that MXML is XML like markup language. I have worked with MXML for a while now and so far I haven't seen anything in MXML that wasn't also valid XML. The only difference is the the filename ending.

       

      Is there more to Flex/MXML that I haven't seen yet?

       

      It's a free discussion, the stage is yours.

        • 1. Re: MXML is XML like?
          archemedia Level 4

          No! Flex is pure XML:

           

          <?xml version="1.0" encoding="utf-8"?>

           

          Dany

          • 2. Re: MXML is XML like?
            jake_flex Level 2

            archemedia wrote:

             

            No! Flex is pure XML:

             

            <?xml version="1.0" encoding="utf-8"?>

             

            Dany

            Thanks for the reply Dany.

             

            That's what I thought also. I have the "Programming Flex 3" book (1st ed.) by Chafic Kazoum and Joey Lott and on page 35 it states

             

            MXML is a dedclarative markup language used to create the user interface
            and to view portions of Flex applications. As the name implies, MXML is an XML-based language.
            

             

            That's pretty much the reason I started this discussion.

             

            P.S. I have to book in physical format, so copying the above citation was done 'by hand', so it might contain some typos, but the relative information is correct.

            • 3. Re: MXML is XML like?
              msakrejda Level 4

              It's XML-based. That means that there are things that are valid XML that are *not* valid MXML (e.g., your root tag always needs to correspond to an existing component). I think that's what is meant by the distinction.

              • 4. Re: MXML is XML like?
                jake_flex Level 2

                msakrejda wrote:

                 

                It's XML-based. That means that there are things that are valid XML that are *not* valid MXML (e.g., your root tag always needs to correspond to an existing component). I think that's what is meant by the distinction.

                Thanks for the reply msakrejda,

                 

                Isn't that something that is relevant at the compile phase e.g. the mxml compiler was written in such a manner that it cheks that the root tag is an already existing component.

                 

                XML it self has quite a few limitations. The limitations come from the program reading XML or the schema/DTD used to validate it.

                 

                Why did they call it MXML? I guess it's marketing.

                • 5. Re: MXML is XML like?
                  Gregory Lafrance Level 6

                  MacromediaXML for the company (merged with Adobe) that created MXML.

                   

                  If this post helps, please mark it as such.


                  Greg Lafrance - Flex 2 and 3 ACE certified

                  www.ChikaraDev.com

                  Flex / AIR Development, Training, and Support Services

                  • 6. Re: MXML is XML like?
                    jake_flex Level 2

                    Greg Lafrance wrote:

                     

                    MacromediaXML for the company (merged with Adobe) that created MXML.

                     

                    If this post helps, please mark it as such.


                    Greg Lafrance - Flex 2 and 3 ACE certified

                    www.ChikaraDev.com

                    Flex / AIR Development, Training, and Support Services

                    Thanks Greg, that explaines the name.