Content is not allowed in the Trailing Section
Posted: Wed Jun 12, 2024 3:40 pm
Hi Oxygen Support Team,
We are using CLOB_CONTENT column (from Oracle XML DB) to download the XML, DITA, DITAMAP files for one of our use cases as per the requirement with the below block of code.
Which is actually downloading the file to local storage without any issues, but as part of the same requirement we had to open the bookmap file in Oxygen automatically once it's downloading. While opening this file in Oxygen once download is completed seeing this below error in Oxygen:
Screenshot 2024-06-12 at 4.34.44 PM
When I click yes from above dialog , this is shown:
Screenshot 2024-06-12 at 4.34.55 PM
Clicking ok will take you to opening of the file in Text Mode instead of Author mode with some validation errors.
Screenshot 2024-06-12 at 5.32.44 PM
We are not seeing the same problem if we use XML_Content to use for the file downloading.
please suggest what's this error regarding and why does this occur, so that we can see the ways of fixing this. As our main requirement here is to focus on using CLOB_CONTENT for download instead of XML_CONTENT.
We are using CLOB_CONTENT column (from Oracle XML DB) to download the XML, DITA, DITAMAP files for one of our use cases as per the requirement with the below block of code.
Code: Select all
Clob clobObject = baselineObject.getClobContent();
Reader clobReader = clobObject.getCharacterStream();
StringBuilder sb = new StringBuilder();
char[] buf = new char[1024*8];
int n;
while( (n = clobReader.read(buf)) >= 0 ) {
sb.append(buf);
}
ByteArrayInputStream returnInputStreamofFile = new ByteArrayInputStream(sb.toString().getBytes(StandardCharsets.UTF_8));
remoteFile = returnInputStreamofFile;
updateLocalFileContent(targetFile, remoteFile);
Screenshot 2024-06-12 at 4.34.44 PM
When I click yes from above dialog , this is shown:
Screenshot 2024-06-12 at 4.34.55 PM
Clicking ok will take you to opening of the file in Text Mode instead of Author mode with some validation errors.
Screenshot 2024-06-12 at 5.32.44 PM
We are not seeing the same problem if we use XML_Content to use for the file downloading.
please suggest what's this error regarding and why does this occur, so that we can see the ways of fixing this. As our main requirement here is to focus on using CLOB_CONTENT for download instead of XML_CONTENT.