aspose file tools*
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: 18889
    
    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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Xml tag with special character