strange XML error using coldfusion, anyone ever get this?

Posted on 2004-10-08
Last Modified: 2013-12-24

I seem to get these error messages frequently when working with xml and displaying xml data dynamically..

Error 1: Whitespace required before attributes.

Error 2: End of entity not allowed; an end tag is missing

Can someone please explain or let me know if they have experience this?

Its frustrating, because it works sometimes, and not others...


Question by:Westside2004
LVL 17

Expert Comment

ID: 12263039
can you post the xml file

Author Comment

ID: 12265188
I don't have access to this file unfortunately or else I would.

Has anyone seen that error?



Accepted Solution

mosphat earned 250 total points
ID: 12494051
The first error is exactly what it says it is: missing whitespace. Run this code and you'll get the error:

<cfxml variable="test">

Of course the error can be corrected using: <category id="1">

The second error is easy as well: missing endtag. Here's how you reproduce it:

<cfxml variable="test">
<category id="1">

Just make sure you write valid XML.


Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now