Consultor Eletrônico



Kbase P132310: 4GL/ABL: Errors (13035) and (13035) using READ-XML( ) method using a relative schema-location path.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/8/2010
Status: Unverified

SYMPTOM(s):

4GL/ABL: Errors (13035) and (13035) using READ-XML( ) method using a relative schema-location path.

Passing a relative path of the XML Schema Definition (XSD) file to the READ-XML( ) method.

Error reading XML file '<file>'. (13035)

READ-XML encountered an error while parsing the XML Document: <error>. (13064)

Error reading XML file 'ced\ttEmsFactory.xsd'. (13035)

READ-XML encountered an error while parsing the XML Document: WARNING: file ", line '0', column '0', message 'An exception occurred! Type: RuntimeException, Message: Warning: The primary entity could not be opened.
ld=C:\OpenEdge\Wrk91C\W806030116\ced\ced\ttEmsFactory.xsd'. (13064). (13064)

Executing statement similar to:
ttTempTableName:HANDLE:READ-XML("FILE","Child/GrandChild/XMLFile.xml","EMPTY","Child/GrandChild/XSDFile.xsd",?).

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.1x

CAUSE:

Bug# OE00170273

FIX:

Following workarounds are available for this issue:
1. Place the referenced XSD file in the working directory and reference it by its name without any folder or directory specification. For example:
ttTempTableName:HANDLE:READ-XML("FILE","Child/GrandChild/XMLFile.xml","EMPTY","XSDFile.xsd",?). Where XSDFile.xsd is located in the current working directory.
2. Use the FILE-INFO:FULL-PATHNAME attribute of the referenced XSD file and pass it as a variable. For example:
DEFINE VARIABLE cFileFullPathName AS CHARACTER NO-UNDO.
ASSIGN
FILE-INFO:FILE-NAME = "Child/GrandChild/XSDFile.xsd"
cFileFullPathName = FILE-INFO:FULL-PATHNAME.
ttTempTableName:HANDLE:READ-XML("FILE","Child/GrandChild/XMLFile.xml","EMPTY",cFileFullPathName,?).
3. Specify the absolute path of the referenced XSD file. For example:
ttTempTableName:HANDLE:READ-XML("FILE","Child/GrandChild/XMLFile.xml","EMPTY","c:\SomeDirecory\Child\GrandChild\XSDFile.xsd",?).