Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Xml tag with special character

 
Manohar Chhapolia
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a scenario where I get the xml (from other system, not in my control) having special character (ü) in it.
When I use it in my system, I get exception

Caused by: org.xml.sax.SAXParseException: Element type "Z" must be followed by either attribute specifications, ">" or "/>".

Where xml tag was suppose to be Zürich.

Any help will be highly appriciated.

Thanks and Regard,
Manohar Chhapolia
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Possibly you are not using the right encoding when you parse the document. But it's difficult to say given the code you have posted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic