This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Xml tag with special character" Watch "Xml tag with special character" New topic
Author

Xml tag with special character

Manohar Chhapolia
Greenhorn

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
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Xml tag with special character