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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: : Go t…

691 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