Book a Demo

Author Topic: The character '<' cannot be used in an attribute  (Read 5201 times)

Richard D Vodden

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
The character '<' cannot be used in an attribute
« on: June 27, 2014, 06:13:53 pm »
I'm getting a really strange error when trying to generate a WSDL from a web services model. The error I'm getting is:

Code: [Select]
Error:
Code = 0xc00ce506
Source = Line : 1; Char : 111
Error Description = The character '<' cannot be used in an attribute value.

Does anyone know how to get from the Line and Character number to an element in the model?

Cheers,

Richard.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: The character '<' cannot be used in an attribu
« Reply #1 on: June 27, 2014, 07:26:08 pm »
I'm not sure about this, but it looks like one of your attributes has a '<' char in it. Try an Extended Search for <

I dont know whether that less symbol should be escaped rather than raising a bug.

Another thought: Uncheck Format XML in Tools/Options/XML. I guess the error is raised here.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: The character '<' cannot be used in an attribu
« Reply #2 on: June 30, 2014, 09:34:06 am »
It looks to me as if EA isn't encoding a string before putting it into an XML attribute. Please send a bug report, and if you can locate the field that the '<' is in it would help locate the problem.
The Sparx Team
[email protected]