It's not a secret anymore!
The moose likes XML and Related Technologies and the fly likes Xml tag with special character Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Xml tag with special character" Watch "Xml tag with special character" New topic

Xml tag with special character

Manohar Chhapolia

Joined: Nov 22, 2006
Posts: 17
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

Joined: Oct 14, 2005
Posts: 19739

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.
I agree. Here's the link:
subject: Xml tag with special character
It's not a secret anymore!