简体   繁体   中英

Getting SAXParseException while parsing a xml file

In java i am crating a XMLstring and that string contains some special character. Then i am sending these xml string to alfresco's executeAction to create a word document. But it's throwing this SAXParseException.

"org.xml.sax.SAXParseException; lineNumber: 20; columnNumber: 99; An invalid XML character (Unicode: 0x1a) was found in the element content of the document."

Special char in my string is !"#$%&'()*+,-./09:;<=>?@AZ[]^_`ayz{|}~?‚ƒ„…†‡ˆ‰Š‹Œ?Ž??''“”•–˜™š›œ?žŸ¡¢£¥?§?©ª«¬®¯°±²³?µ·?¹º»Àãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ

您可以使用此解决方案以编程方式删除 0x1a 字符,然后再将其提交给 executeAction 方法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM