2 Replies Latest reply on May 18, 2006 3:48 PM by Newsgroup_User

    xml formatting (pretty print, etc)

    Level 7
      Our MXML is getting a bit messy. (we also need a pretty printer and simple
      xml exploration and editing) for soap feeds.

      1. Is there something in Eclipse now that does this?

      2. Is there a publicly available plug-in

      3. Is there some simple (i.e. cheap or free tool) for doing this. XMLSpy
      would be overkill.



        • 1. Re: xml formatting (pretty print, etc)
          Level 7
          There is no XML or MXML formatting built-in to FlexBuilder or Eclipse.

          But don't despair, there are 100's of plugins available for eclipse,
          here is one way that works...

          1. install the XMLBuddy eclipse plug-in from xmlbuddy.com
          2. in flexbuilder, go to Window > Preferences > General > Editors > File
          Associations
          3. select *.mxml in the top panel, then click "Add" in the bottom panel
          4. choose XMLBuddy, then OK, then OK

          You can now open any MXML file using the XML editor (xmlbuddy) rather
          than FlexBuilder's normal MXML editor. To do this, select the file in
          the Navigator panel, then right-click and choose Open With > XMLBuddy.
          Once you are in the XML editor, you can select a range of text (or the
          entire file, if you like) and choose Format from the XML menu.

          This technique will work for any XML-based file format, including MXML,
          soap documents, RSS feeds, etc.

          There are probably other way to do this. Does anybody have other
          suggestions?

          Mark Shepherd
          FlexBuilder Engineering


          Yechezkal Gutfreund wrote:
          > Our MXML is getting a bit messy. (we also need a pretty printer and simple
          > xml exploration and editing) for soap feeds.
          >
          > 1. Is there something in Eclipse now that does this?
          >
          > 2. Is there a publicly available plug-in
          >
          > 3. Is there some simple (i.e. cheap or free tool) for doing this. XMLSpy
          > would be overkill.
          >
          >
          >
          • 2. Re: xml formatting (pretty print, etc)
            Level 7
            Excellent directions, Yes, this is exactly what I needed to know. It now
            works fine.

            Only one item to note. Even though I did not set XMLBuddy as the default for
            *.mxml
            -- If I do the context menu (right click) and choose xml buddy, then it will
            stay sticky for that file the next time. The same as with using the
            FlexBuilder mxml editor. Not a real problem but what does "default" mean any
            more if the IDE is trying to be so smart as to decide for me what my default
            should be :-)



            "Mark Shepherd" <mshepher@adobe.com> wrote in message
            news:e4ijid$ihq$1@forums.macromedia.com...
            > There is no XML or MXML formatting built-in to FlexBuilder or Eclipse.
            >
            > But don't despair, there are 100's of plugins available for eclipse, here
            > is one way that works...
            >
            > 1. install the XMLBuddy eclipse plug-in from xmlbuddy.com
            > 2. in flexbuilder, go to Window > Preferences > General > Editors > File
            > Associations
            > 3. select *.mxml in the top panel, then click "Add" in the bottom panel
            > 4. choose XMLBuddy, then OK, then OK
            >
            > You can now open any MXML file using the XML editor (xmlbuddy) rather than
            > FlexBuilder's normal MXML editor. To do this, select the file in the
            > Navigator panel, then right-click and choose Open With > XMLBuddy. Once
            > you are in the XML editor, you can select a range of text (or the entire
            > file, if you like) and choose Format from the XML menu.
            >
            > This technique will work for any XML-based file format, including MXML,
            > soap documents, RSS feeds, etc.
            >
            > There are probably other way to do this. Does anybody have other
            > suggestions?
            >
            > Mark Shepherd
            > FlexBuilder Engineering
            >
            >
            > Yechezkal Gutfreund wrote:
            >> Our MXML is getting a bit messy. (we also need a pretty printer and
            >> simple xml exploration and editing) for soap feeds.
            >>
            >> 1. Is there something in Eclipse now that does this?
            >>
            >> 2. Is there a publicly available plug-in
            >>
            >> 3. Is there some simple (i.e. cheap or free tool) for doing this. XMLSpy
            >> would be overkill.
            >>
            >>