Steven Erat's Blog Steven Erat Photography
 
 
Viewing By Entry
 
 

TalkingTree  Generating XML Output While Avoiding CFMX DevNet Watermark

 

The ColdFusion MX 6.1 DevNet Product Edition, available with a Macromedia DevNet Subscription, is a full Enterprise Edition version of ColdFusion MX 6.1 available to multiple IPs, but intended for development purposes only. Compare this to the Developer Edition which also has all Enterprise functionality, but is restricted to handling requests from just one IP address. The ColdFusion MX DevNet Edition license agreement does not permit using this edition in production, and at runtime the DevNet Edition injects a "watermark" into the generated output from a template. The watermarks can be seen as an additional META tag as shown here:

<META NAME="ColdFusionMXEdition" CONTENT="ColdFusion DevNet Edition - Not for Production Use.">

While this watermark does not adversely affect generated html output, it can break generated xml well-formedness if you're not careful. To avoid the watermark being added to generated xml output be sure to set the content-type to "text/xml" in your template. If you generate xml and output it without setting the content-type to "text/xml", then the xml will get the watermark and when the browser's built-in parser attempts to style the xml for display it will generate an error. The error provided by MSIE 6.02 is the following:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please
correct the error and then click the Refresh button, or try again later.
------------------------------------------------
The following tags were not closed: META.

I've written this example which you can download and test yourself. The test has the following four options:

  1. [ok] view generated xml from a cfm with content type set to type/xml (no watermark)


  2. [error] view generated xml from a cfm without any content type set explicitly, which defaults to text/html (has watermark)


  3. [ok] view xslt output of generated xml (has watermark)


  4. [ok] view xml dump (has watermark)


If using a ColdFusion MX DevNet License, the solution for generating xml without the DevNet watermark is to set the content type to text/xml. The solution for generating plaintext files without the DevNet watermark is to set the content type to text/plain.

Download Example (doesn't work in cfmx 7 as is)

Available as Technote

 


Comments

Hi,

I have a Dev Net edition for CF 7 and tried your code for stopping the watermark on a standard cold fusion template using the CFCONTENT set to text/plain and i still get the watermark.

What do you suggest?

Thanks!

Joel


I've heard many reports that the watermark cannot be defeated in CFMX 7, but I haven't tested it and I haven't looked for other workarounds.


The water mark seems to be causing issues with dynamic file downloads on our dev box as well even though we have set the content type. The examples from the live docs will not even work. IE seems to just not like the watermark for downloads.


The content-type workaround doesn't help with CFMX 7. The devnet edition is for development only, so if you were willing to work with the regulard Developers Edition instead you would be restricted to localhost plus 2 IPs, but you wouldn't have the watermark and you'll be able to emit raw XML.

To change your DevNet edition to a Developers edition, edit $CFHOME/lib/license.properties and remove your serial number after the sn= part of the file. Then restart CF.


 

 

Calendar

 
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search This Site

 
This is an exact search only

About This Site

 
I live west of Boston and work as a Software Engineer with ColdFusion and Flex, specializing in Linux. Recently I graduated in Professional Digital Photography from CDIA.
More about me

Recent Entries

 
A ColdFusion Trick for Lost D..
Starting ColdFusion9 Solr: Us..
Adobe LiveCycle DataServices ..

Recent Comments

 
Posted By Aaron Longnion:
Thanks Steven, I just ran into this problem, remembered your tweet about it, and found your blog on it. :)

Posted By srinyvas:
Hai, This information is very useful and i like your excellent writing skill. Can i copy this Content to my website top management colleges ...

Posted By Steven Erat:
@Wade - Glad I could help! Thanks for letting me know it worked for you too.

recently played

 
The Candid Frame #70 - Greg Gorman
by Ibarionex R. Perello
on The Candid Frame: A Photography Podcast

now playing, a plug-in for itunes

Categories

 
RSS Adobe (34)
RSS Bicycling (9)
RSS Blogging (39)
RSS Books (13)
RSS Breeze (13)
RSS CFMX Podcasts (10)
RSS ColdFusion (427)
RSS Computer Technology (51)
RSS Events (26)
RSS Flex (20)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (22)
RSS Macromedia (27)
RSS Meetup (35)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photography (111)
RSS Photoshop (29)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Twitter (10)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Terrence Ryan
Ben Forta
Ray Camden
Kinky Solutions
Dan Vega
Gary Gilbert
Simeon Bateman
Red Hat Blogs
O'Reilly Digital Media
O'Reilly Radar
John Nack
The Strobist
Scott Kelby
Matt Kloskowski
Joe McNally
Digital Photography School
Engadget
Science Blog

RSS

 


Add to Google
Add to My Yahoo!

Aggregated By

 


Consumed By Feed-Squirrel.com
Aggregated by ColdFusionBlogger.org

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software
CJM Group - ColdFusion Website Hosting


 
 
blog | photos | flickr | referers | webcam | stats | about | contact
 
Copyright © 2010 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer