The API should throw exceptions or produce error codes when used in an incorrect way. From our point of view it is a real restriction if the only correct way for importing has to use loaded XmlDocuments (large document problems, performance, …). It also complicates server development (“XmlDocument” is not serializable).
Anyway I modified the sample document to contain valid XML:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE onlaw.inhalt [ ]>
<onlaw.inhalt>abc / done</onlaw.inhalt>
Then I loaded the document to an “XmlDocument” using the “XmlValidatingReader” with entity handling set to “ExpandCharEntities”. Storing the document back to the filesystem reproduces the correct content with entity reference: “abc / done”.
After Tamino insert/retrieve for the document the entity reference is lost. All of the methods I tried (Retrieve, RetrieveStream, RetrieveReader) produced “abc SOL done”.
How can I preserve the entity reference with Tamino?
Regards,
erwin
#API-Management#webMethods#webMethods-Tamino-XML-Server-APIs