Model-Glue XML Isn't Valid!!! Short Reminder
Don't you hate it when you're focused on adding functionality and/or troubleshooting issues in your Model-Glue app and when you save your modelglue.xml file to see if it all works right, you get the error:
See if you can spot the earth-shattering error in the following snippet of trouble-causing xml:
<event-handler name="view.register">
<broadcasts />
<results>
<result do="view.template" />
</results>
<views>
<include name="body" template="dsp_register.cfm" />
</Views>
</event-handler>
This has been my day to be mentally challenged for some reason, so perhaps all of you found it quickly. But fifteen minutes, several experiments to isolate the offending code block, and a visit to an online XML validator later, I was reminded that XML is case sensitive. The way my font settings are in my IDE make a lower case and capital "V" look VERY much alike, so I kept looking right over it.
Just thought I'd share this in case it helps someone else save a few minutes. ;)
Model-Glue: C:\ColdFusion8\wwwroot\yourAppName\config\modelglue.xml isn't valid XML!
I hate it. A lot.See if you can spot the earth-shattering error in the following snippet of trouble-causing xml:
<event-handler name="view.register">
<broadcasts />
<results>
<result do="view.template" />
</results>
<views>
<include name="body" template="dsp_register.cfm" />
</Views>
</event-handler>
This has been my day to be mentally challenged for some reason, so perhaps all of you found it quickly. But fifteen minutes, several experiments to isolate the offending code block, and a visit to an online XML validator later, I was reminded that XML is case sensitive. The way my font settings are in my IDE make a lower case and capital "V" look VERY much alike, so I kept looking right over it.
Just thought I'd share this in case it helps someone else save a few minutes. ;)
Subscription Options
You are not logged in, so your subscription status for this entry is unknown. You can login or register here.
Re: Model-Glue XML Isn't Valid!!! Short Reminder
Shows what happens when you try to use a system designed for data exchange as a programming language.
Posted by Michael Long on October 3, 2007 at 4:55 PM
Re: Model-Glue XML Isn't Valid!!! Short Reminder
CAse SensITive , I have enjoyed and learned a few things from your MG posts, keep up the great work.
Posted by robb on October 3, 2007 at 6:40 PM

