Consultor Eletrônico



Kbase P149617: Child nodes may not get imported into temp-tables using read-xml method
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/8/2009
Status: Verified

SYMPTOM(s):

Child nodes may not get imported into temp-tables using read-xml method

READ-XML method returns true but not all the temp-tables get imported

FACT(s) (Environment):

Source XML has nested parent/child nodes
Nested element is just one element (represented in Progress as only one temp-table field, not counting the field marked as xml-node-type 'hidden').
OpenEdge 10.1x
All Supported Operating Systems

CAUSE:

Bug# OE00188044

CAUSE:

When OpenEdge created records from XML, it was erroneously assuming that each node has attribute fields or more than 1 child in order to be nested. The nested child in this example had no fields, and therefore 0 child nodes. It was incorrectly assumed to be a temp-table field and not a record.

FIX:

Upgrade to OpenEdge 10.2A02 or later. As a workaround, modify the XML document to have an extra element separating the parent element from the child element. Even a comment <!-- --> would do the job. Alternatively, add some unused fields.