Consultor Eletrônico



Kbase P162055: The SAVE() method of the DOM parser returns error 9082 when a default namespace is declared
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/2010
Status: Unverified

SYMPTOM(s):

The SAVE() method of the DOM parser returns error 9082 when a default namespace is declared

Manually adding a declaration for the default namespace (xmlns="...") to a DOM element that contains an attribute without a prefix causes the following error when calling SAVE():

X-NODEREF or X-DOCUMENT SAVE got an error: Attempt to re-declare namespace prefix '' for namespace '' in element 'xs:schema'. It is already declared for namespace '<url to xsd>'. (9082)

FACT(s) (Environment):

OpenEdge 10.2B
All Supported Operating Systems

CAUSE:

Bug# OE00196348

FIX:

Upgrade to 10.2B01 or later. - OR - As a workaround, replace the default namespace with a named namespace. See the following code snippet for an example: COPY-LOB FILE L-FILE1 TO L-LONG.
L-LONG = Replace(l-long,"xmlns=","xmlns:abc=").

Create X-DOCUMENT L-SOAP-DOC.
L-SOAP-DOC:LOAD("LONGCHAR",L-LONG, NO).
/* Do further DOM processing */
L-SOAP-DOC:SAVE("LONGCHAR",L-LONG).

L-LONG = Replace(l-long,"xmlns:abc=","xmlns=").
COPY-LOB L-LONG TO FILE L-FILE2.