Eclipse plugin for Mach-ii?

49 views
Skip to first unread message

Richard Kroll

unread,
Jan 29, 2007, 3:52:15 PM1/29/07
to mach-ii-for...@googlegroups.com

Hey all,
I've been searching for a way to enable code hints when editing my
mach-ii.xml config files within Eclipse. I know I came across a plugin
for Dreamweaver for this, but cannot seem to find one for eclipse. Can
anyone point me in the direction of one if it exists?

Thanks,

Rich Kroll

Andrew Powell

unread,
Jan 29, 2007, 3:53:55 PM1/29/07
to mach-ii-for...@googlegroups.com
Take a look at Oxygen XML. www.oxygenxml.com

You can load the DTD into it and it will use that to help you hint
your XML.

ap

________________________________________
Andrew Powell
Senior Consultant
e-mail: andrew...@universalmind.com


UniversalMind200.gif

Kurt Wiersma

unread,
Jan 29, 2007, 4:27:43 PM1/29/07
to mach-ii-for...@googlegroups.com
For some reason I always keep coming back to XMLBuddy. It has always worked the best for me. It still works great with Eclipse 3.2.

http://www.xmlbuddy.com/

--Kurt

Mark Mandel

unread,
Jan 29, 2007, 6:20:13 PM1/29/07
to mach-ii-for...@googlegroups.com
I like the Web Tools Project for editing XML -

Works very well for me:
http://www.eclipse.org/webtools/

Mark


--
E: mark....@gmail.com
W: www.compoundtheory.com

Matt Williams

unread,
Jan 30, 2007, 9:49:43 AM1/30/07
to mach-ii-for...@googlegroups.com
Ditto on XML Buddy (the free version is sufficient for me). Note that
you do have to have the file extension be xml. Something like
machii.xml.cfm makes CFEclipse be the perspective and not XML Buddy.

Matt

Richard Kroll

unread,
Jan 30, 2007, 10:00:16 AM1/30/07
to mach-ii-for...@googlegroups.com
Thanks to everyone for their suggestions. I am starting with the WTP
from eclipse (I was looking for integrated JS / CSS anyhow!).

I noticed that in a few sample apps that people are using machii.xml.cfm
instead of the (what I thought was) standard machii.xml. What is the
benefit of adding a .cfm extension to this? My first thought was that
you could include CFML into the template, but after thinking about it,
it seems to me that this file is being parsed as an XML doc and would
not work in this fashion. What am I missing?

Rich Kroll

Dan Wilson

unread,
Jan 30, 2007, 10:12:46 AM1/30/07
to mach-ii-for...@googlegroups.com
Rich,

The point of doing that is to secure the configuration file. At the
top of the xml.cfm file there is a line of CFML commented out using an
HTML comment. This is not the same as a CFM comment and the inner CFM
command runs.

If the xml.cfm file is hit from the webserver, no content is rendered
to the browser thusly protecting your configuration file from prying
eyes in the browser.

However, internally, the same xml.cfm file is passed off to the MachII
configuration parser and the HTML comment is respected. What is left
is the MachII xml configuration and this is happily processed by the
framework.


HTH

Dan Wilson


--
"Come to the edge, he said. They said: We are afraid. Come to the
edge, he said. They came. He pushed them and they flew."

Guillaume Apollinaire quotes

Kurt Wiersma

unread,
Jan 30, 2007, 9:05:31 PM1/30/07
to mach-ii-for...@googlegroups.com
Actually there is a way around this if you are using Eclipse 3.2. In the Eclipse preferences under editor > file associations you add XMLBuddy to list of valid editors for .cfm files. Then right click on your mach-ii.xml.cfm file and choose open with > XMLBuddy and you should be set. Eclipse even remembers that you want that file to always open with XMLBuddy instead of the standard .cfm file editor. Gotta love Eclipse! :)

--Kurt

Matt Williams

unread,
Jan 31, 2007, 7:03:12 AM1/31/07
to mach-ii-for...@googlegroups.com
Very nice Kurt. Thanks for that tip. I never thought to try that.

Matt

On 1/30/07, Kurt Wiersma <kwie...@gmail.com> wrote:

Jim

unread,
Jan 31, 2007, 8:38:59 AM1/31/07
to Mach-II for ColdFusion
On Jan 29, 4:27 pm, "Kurt Wiersma" <kwier...@gmail.com> wrote:
> For some reason I always keep coming back to XMLBuddy. It has always worked
> the best for me. It still works great with Eclipse 3.2.

Can anyone provide some detailed instructions on how to setup the DTD
in XMLBuddy? I recall doing this awhile ago when I was working on
Fusebox but forgot the specifics... I've got the plugin installed
just need to get it pointed to the DTD I imagine.

Thanks,
Jim

Matt Williams

unread,
Jan 31, 2007, 11:37:27 AM1/31/07
to mach-ii-for...@googlegroups.com
I could be wrong, but I think you only need to point to it in the xml file:
<!DOCTYPE mach-ii PUBLIC
"-//Mach-II//DTD Mach-II Configuration 1.1.1//EN"
"mach-ii_1_1_1.dtd">

Then make sure you have a copy of the dtd in the same dir as the xml
file itself.

Mat

Qasim Rasheed

unread,
Feb 1, 2007, 4:58:54 PM2/1/07
to mach-ii-for...@googlegroups.com
MyEclipse is another option for XML and it has several other plugins.
--
Qasim Rasheed
Certified Advance ColdFusion MX Developer
(IM qasimrasheed AT yahoo, msn or GTalk)
Reply all
Reply to author
Forward
0 new messages