• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem is Writing XML

 
Prasad Ballari
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

Can anybody help me out.
I am using writeUTF to create XML file as the requirement is of using unicode..BUt writeUTF is writing high order bits at first..due to this the xml file is not validated...Is there any ways to remove that bits from xml file....
I tried with reading & writing file again but..due to its nature of unicode it shows junk character...
Thanks in advance
Regards
Prasad
------------------
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a reason why you are not creating plain ASCII xml files using editors like notepad?
 
Prasad Ballari
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply.
The data is being fetched from AS/400 & its in Arabic..If i use normal way of writing file,the arabic data appears as juck characters..Thants the reason to use writeUTF method,but the major problem is first two bytes...If we can remove, then the XML file will be validated.
The XML file generated in this way is being used by other applications with Apache parser...
Pls suggest me some solution
Thanks
prasad
------------------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic