Kbase P110604: In OpenEdge 10 use X-DOCUMENT:LOAD with NO-ERROR to handle DOM parser errors
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/7/2005 |
|
Status: Unverified
FACT(s) (Environment):
OpenEdge 10.x
SYMPTOM(s):
Error 9082 processing an XML file
X-NODEREF or X-DOCUMENT <method-name> got an error: <xml-exception>. (9082)
X-NODEREF or X-DOCUMENT LOAD got an error: FATAL ERROR: file ..., line ..., column ..., message 'Invalid character in attribute value ... ( Unicode: 0x1A)'.(9082)
Using 4GL X-DOCUMENT object handle
X-DOCUMENT:LOAD method throws 9082 error
CHANGE:
Upgrade from Pogress 9.1x
CAUSE:
This is expected behavior.
FIX:
Use NO-ERROR with LOAD method and check for XML parser error with:
IF ERROR-STATUS:GET-MESSAGE(1) <> '' THEN
MESSAGE "Error from DOM parser: " ERROR-STATUS:GET-MESSAGE(1) .
In Progress version 9 the DOM parser error was simply ignored at runtime so there was no way to catch the error at the application level.
In OpenEdge 10.x the error is reported by the LOAD method and program halts unless NO-ERROR is used and the error is handled as described above.