• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Character reference "&#x0" is an invalid XML character

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I am doing following to parse a xml file.



My file some characters like :

¬í�sr�java.util.Hashtable»%!Jä¸�F�
loadFactorI� thresholdxp?@�����w��� ���t�ClientMachineNamet�
mr632xpplpt� IsOSWindowst�truet�Accept-Languaget�en-us,ja;q=0.5t�Commandt�handleLoginCommandt�
IsUseZipOnt�falsex¬í�t�

And the code throws following error when attempting to parse it.

Character reference "�" is an invalid XML character.

Please help.

Thanks,
Manish Ramrakhiani.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it's true. That character (hex 00) is not allowed to occur in an XML document. So it's not your problem. Just send it back to whoever created it and remind them of that rule. Refer them to section 2.2 of the XML Recommendation if they want the official version.
 
yeah, but ... what would PIE do? Especially concerning this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic