Without the appropriate IDoc metadata, you cannot interpret the XML data as an SAP IDoc. Without this IDoc metadata, an IDoc-XML document is just a hierarchical row structure.
And the only way for the Java Java IDoc class library to get the IDoc metadata is to request it from some SAP system - at least this is true for the current version 3.0.12 of JIDocLib. Thus, the answer to both of your questions, unfortunately: NO .
Of course, you can parse IDoc-XML with a standard XML parser, like any other arbitrary XML document.
Trixx source share