Menu

#11 xml error parsing users.xml

open
nobody
None
5
2004-09-26
2004-09-26
No

Hi,

Using MX7 (Blackstone).

This error on login:
Error casting an object of type java.lang.String to an
incompatible type. This usually indicates a programming
error in Java, although it could also mean you have
tried to use a foreign object in a different way than
it was designed.
java.lang.String

The error occurred in
C:\Inetpub\wwwroot\cfxml_blog\Application.cfm: line 52

50 : <cfif IsDefined("cflogin")>
51 : <cfset
stringaricerca="//user[@name='"&#cflogin.name#&"']">
52 : <cfset
ricerca=xmlsearch(application.users,stringaricerca)>
53 : <cfif not ArrayIsEmpty(ricerca)>
54 : <cfset id=ricerca[1].xmlattributes.id>

can't debug as I cannot successfully decrypt the
users.xml file to examine the strxuture of the XML in it.

On MX 6.1 the error reports to be as follows:

Whitespace required before attributes.
Whitespace required before attributes.

Over to you. Send me an inencrypted source file for
users.xml and I can solve this issue.

BYron

Discussion


Log in to post a comment.