CFEclipse, XMLBuddy and Mach-II DTD

A few days ago someone on the Mach-II mailing list posted about using the existing Mach-II DTD within Eclipse/CFEclipse to get code hints within the XML config file.

A few suggestions for XML editors came up (see end of this post for some links)… I remember doing this for Fusebox and as I’m now working with Mach-II thought I’d set it up again. I downloaded the free version of XMLBuddy and manually installed it into Eclipse. There is some confusion about using XMLBuddy in 3.2 but it works for me and I found a few other posts where people said they had no problems - YMMV.

Update: 2/11/2007:
Moved to my Wiki: CFEclipse, XMLBuddy and Mach-II DTD

8 Comments

  1. Posted February 5, 2007 at 12:40 pm | Permalink

    I hate it when I’m an idiot! I’ve actually been trying to do this for a LONG time and had basically given up. Thanks for explaining this, I can’t believe how easy it is and have no idea how I missed it.

  2. Posted February 5, 2007 at 12:59 pm | Permalink

    Brian - don’t feel bad. I’ve been working on my first Mach-II application for a few months now without it…

    So far I’m finding it very useful- esp. in regards to closing tags which I always seem to forget!!

  3. dickbob
    Posted February 22, 2007 at 4:50 am | Permalink

    How would I adapt this for Fusebox. I get the association stuff with XMLBuddy but not the path name you’re putting in the DOCTYPE.

    Can you help?

  4. Posted February 22, 2007 at 8:51 am | Permalink

    Check out this post by Nathan Strutz:

    http://www.dopefly.com/techblo.....?entry=101

    He’s using a different XML editor but it should be enough to get you going in the right direction.

  5. dickbob
    Posted February 22, 2007 at 11:14 am | Permalink

    Okay, that helped a bit but even Nathan says “I wish I knew what that all meant”.

    It’s the path bit I don’t get. How do I tell the XML file, or CFEclipse, where I’ve put the DTD?

  6. Posted February 22, 2007 at 12:11 pm | Permalink

    I need to sit down and play with this and figure out what exactly is required to make this work.

    I dumped my .dtd file in with my mach-ii.xml file.

  7. Posted February 22, 2007 at 12:17 pm | Permalink

    OK - digging around it looks like you can also reference the .dtd file with a full path (this assumes you are on Windows)

    < !DOCTYPE mach-ii PUBLIC "-//Mach-II//DTD Mach-II Configuration 1.1.1//EN" "file:///d:/wwwroot/machii/mach-ii_1_1.dtd">

  8. dickbob
    Posted February 24, 2007 at 6:48 am | Permalink

    Thanks, that’s helped.

Creative Commons License

Copyright © 2007 thecrumb.com. All rights reserved.