[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

strange XML error using coldfusion, anyone ever get this?

Posted on 2004-10-08
5
Medium Priority
?
146 Views
Last Modified: 2013-12-24
Hi,

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...


Thanks

-ws
0
Comment
Question by:Westside2004
3 Comments
 
LVL 17

Expert Comment

by:Tacobell777
ID: 12263039
can you post the xml file
0
 
LVL 1

Author Comment

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

Has anyone seen that error?

Thanks,

-ws
0
 
LVL 6

Accepted Solution

by:
mosphat earned 1000 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">
<categoryid="1"></category>
</cfxml>

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">
</cfxml>

Just make sure you write valid XML.

HTH,
Ruud
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
Suggested Courses

872 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