Menu

#26 XML encoding does not include BASE64 PDF data

v2.0
open
nobody
Parser (14)
5
2012-01-30
2012-01-30
Anonymous
No

For a pipe-formatted segment (part of a ORU-O01 message) that begins:

OBX|4|RP|||ADTX^Image^PDF^Base64^JVBERi0xLjQNJ ...

The pipe parser will succeed and the pipe encoder will re-encode the segment properly to pipe-delimeted format.

However, when attempting to re-encode the segment with the DefaultXmlParser, the resulting XML is missing the PDF data:

<OBX>
<OBX.1>4</OBX.1>
<OBX.2>RP</OBX.2>
<OBX.5>
<RP.1>ADTX</RP.1>
<RP.2>
<HD.1>Image</HD.1>
</RP.2>
<RP.3>PDF</RP.3>
<RP.4>Base64</RP.4>
</OBX.5>
<OBX.8>N</OBX.8>
<OBX.11>F</OBX.11>
</OBX>

Discussion

MongoDB Logo MongoDB