Consultor Eletrônico



Kbase P13110: Importing XML file results in error 8092 due to missing end
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   25/11/2003
Status: Verified

FACT(s) (Environment):

Windows

FACT(s) (Environment):

Progress 9.x

SYMPTOM(s):

X-NODEREF or X-DOCUMENT <method-name> got an error: <xml-exception>. (9082)

X-NODEREF or X-DOCUMENT GET-ATTRIBUTE got an error: Unexpected exception. (9082)

Reading an XML document which contains no ending CR/LF.

CAUSE:

The IMPORT statement, if it does not receive an end of file character repeats the last line received.

FIX:

By first appending the document with a CHR(13) we can denote the end of the file before doing the actual import.

For example,

OUTPUT TO VALUE("c:\file.xml") APPEND.
PUT CHR(13).
OUTPUT CLOSE.

Once the file has a proper end of line terminator then the IMPORT statement will be able to read the full document in.