Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

checking for valid xml characters before writing data to an xml file?

807589Dec 16 2008 — edited Dec 16 2008
I'm writing data to an xml file and I'm already going through each character one by one. I just wanted to know if there was a way to check if the character that I'm currently looking at is a valid xml character. For example, I can't open the following with an xml editor: "Z^&59Ñ?Ut¦£ii Z¸x0EP¦¤•~Úyäè(LŸ†0aÒ)àÔ&¸’Ý-©4¯¡¾" All I want to do is just replace each invalid character with the blank character. Thanks!

Edited by: setaret2004 on Dec 16, 2008 12:03 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 13 2009
Added on Dec 16 2008
18 comments
1,606 views