Consultor Eletrônico



Kbase P178424: The CREATE-NODE-NAMESPACE() method on an X-DOCUMENT does not create a namespace on the node unless S
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   06/12/2010
Status: Unverified

SYMPTOM(s):

The CREATE-NODE-NAMESPACE() method on an X-DOCUMENT does not create a namespace on the node unless SET-ATTRIBUTE is run

The CREATE-NODE-NAMESPACE() method creates elements with undeclared namespaces

The namespaces are not declared when using the CREATE-NODE-NAMESPACE() method

FACT(s) (Environment):

OpenEdge 10.1x
OpenEdge 10.2A
All Supported Operating Systems

CAUSE:

Bug# OE00182485

FIX:

Upgrade to OpenEdge 10.2B or later.
- OR -
As a workaround use the SET-ATTRIBUTE() method to declare the namespace. For example:
hDoc:CREATE-NODE-NAMESPACE(hRoot, "http://test.com/", "tst", "element").
hRoot:SET-ATTRIBUTE("xmlns", "http://test.com/").
hDoc:APPEND-CHILD(hRoot).
... instead of:
hDoc:CREATE-NODE-NAMESPACE(hRoot, "http://test.com/", "tst", "element").
hDoc:APPEND-CHILD(hRoot).