File -> EAI -> Legacy system
텍스트 인코딩 형식: UTF-8
에러
An invalid XML character (Unicode: 0x0) was found in the element content of the document.
에러 원인
XML 문서에서 XML에서 허용하지 않는 문자가 들어왔을 경우에 에러 발생
해결 방법
- File로 들어오는 XML안에 XML에서 허용하지 않는 특수문자가 들어갔는지 확인
- XML에서 허용하지 않는 특수문자
[# x7F- # x84], [# x86- # x9F], [# xFDD0- # xFDDF], [# 1FFFE- # x1FFFF], [# 2FFFE- # x2FFFF], [# 3FFFE- # x3FFFF], [# 4FFFE- # x4FFFF], [# 5FFFE- # x5FFFF], [# 6FFFE- # x6FFFF], [# 7FFFE- # x7FFFF], [# 8FFFE- # x8FFFF], [# 9FFFE- # x9FFFF], [# AFFFE- # xAFFFF], [# BFFFE- # xBFFFF], [# CFFFE- # xCFFFF], [# DFFFE- # xDFFFF], [# EFFFE- # xEFFFF], [# FFFFE- # xFFFFF], [# 10FFFE- # x10FFFF]
참고: www.w3.org/TR/2004/REC-xml-20040204/#NT-Char
Extensible Markup Language (XML) 1.0 (Third Edition)
Extensible Markup Language, abbreviated XML, describes a class of data objects called XML documents and partially describes the behavior of computer programs which process them. XML is an application profile or restricted form of SGML, the Standard General
www.w3.org
유니코드 문자열 참고: unicode-table.com/en/#0000
Unicode Character Table
Unicode web service for character search. Find, copy and paste your favorite characters: 😎 Emoji, ❤ Hearts, 💲 Currencies, → Arrows, ★ Stars and many others 🚩
unicode-table.com
0xb: : Vertical tabulation
0x1b: : Escape
0x3: : End of text
0x1: : Start of heading
// 매핑할때, 특수문자를 삭제하고 매핑
line = line.replaceAll("[^\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFF]+", "");
SAP Community 참고: answers.sap.com/questions/8923207/invalid-xml-character-unicode-0x0.html
Invalid XML Character (Unicode: 0x0) - SAP Q&A
You already have an active moderator alert for this content.
answers.sap.com
'SAP > EAI' 카테고리의 다른 글
[SAP EAI] 'sybase/SID' Disk full issue (0) | 2021.02.01 |
---|---|
[SAP EAI] Error: 1105, Severity: 17, State: 2 in Sybase (0) | 2021.01.28 |
[SAP EAI] Configuring the Receiver Plain HTTP Adapter in SAP (0) | 2021.01.19 |
[EAI] SAP XI Namespace (0) | 2020.12.15 |
[SAP EAI] com.microsoft.sqlserver.jdbc.SQLServerException: ',' 근처의 구문이 잘못되었습니다. (0) | 2020.12.01 |