Consultor Eletrônico



Kbase P111109: WRITE-XML method writes malformed XML if field names contain illegal characters
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   25/01/2007
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.1A

SYMPTOM(s):

Calling WRITE-XML for a temp-table

Temp-table has field with special character in the name (example: "bug#")

WRITE-XML method completes without error

XML generated is not well-formed

Trying to parse XML generated results in errors

CAUSE:

Bug# 20051122-004

CAUSE:

This is a known issue being investigated by Development.
There are a number of characters that are allowed in a 4GL object names, but are invalid in an XML element or argument name. The WRITE-XML method did not take these characters into account and writes them into the XML document, which is not well-formed as a result.

FIX:

Upgrade to OpenEdge 10.1A01 or later
Upgrade to OpenEdge 10.1B or later

The WRITE-XML method will no longer accept special characters in field names and will raise a runtime error instead of producing invalid XML documents