Hi,
Im getting a SAXparseException while converting a hex EBCIDIC in lower case to xml.
The copybook and xsd are attached.
HEX o/p = a3993f953f8283848586878889919293949596979899a2a3a4a5a6a7f1f2f3f4f5
character Encoding = IBM1140
AccountBalanceRequestXmlTransformers.toXml(host, writer, "IBM01140");
error: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 148; An invalid XML character (Unicode: 0x1a) was found in the element content of the document.
thanks
LS
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 148; An invalid XML character (Unicode: 0x1a) was found in the element content of the document.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:254)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:300)
at com.parasoft.soavirt.messages.copybook.CopybookMessage.createDocument(CopybookMessage.java:167)
Request HEX i/p = 74 72 61 6E 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 31 32 33 34 35
expected Response HEX o/p = A3 99 81 95 81 82 83 84 85 86 87 88 89 91 92 93 94 95 96 97 98 99 A2 A3 A4 A5 A6 A7 F1 F2 F3 F4 F5
byte[] hostBytes= "a".getBytes("IBM01140"); // is this the correct way to get the byte[] of EBCIDIC representation "a"?How to generate hostBytes for this test?