cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10264
Views
0
Helpful
1
Replies

An invalid XML character (Unicode: 0x8) was found in the element content of the document.

goyalanshul
Level 1
Level 1

Hi

I am trying to parse an XML response received from WebEx XML API using SAX parser for Java

However, I am encountering the following error for a client while sending the GetSite command.

An invalid XML character (Unicode: 0x8) was found in the element content of the document.

The character seem to be inside a <serv:intlLocalNum> tag.

Is there I can avoid this. The error is in the response received from XML. Is this something I should suggest my client to correct.

Thanks

Anshul

1 Reply 1

Geevarghese Cheria
Cisco Employee
Cisco Employee

Hi Anshul,

There are a few characters that are dissallowed in XML documents.

If you generated the document you will need to strip it out.

If you have an errorneous document, you should strip away these characters before trying to parse it.

Reference - http://stackoverflow.com/questions/5742543/an-invalid-xml-character-unicode-0xc-was-found

Request you to refer  - https://communities.cisco.com/docs/DOC-48081

Thanks and Regards,
Geevarghese