XML-NODE-NAME in temp-table for Prodataset

Potish

Member
I am defining a temp-table using LIKE database a table to be used in a Prodataset for READ-XML. One of the elements in the XML has a name of <Title> which is a Progress Keyword so in the database table definition, it was defined as Title-Pax. It is possible in the temp-table definition to use XML-NODE-NAME to set the name of the field to Title to match the XML element. I have only seen XML-NODE-NAME used as part of a field definition but in this case, the field is already in the table from which the temp-table is defined LIKE.
 

Bounty

New Member
If I understand you correctly, you have something like:
Code:
DEFINE TEMP-TABLE ttSomething LIKE realtable.

You will have to change that:
Code:
DEFINE TEMP-TABLE ttSomething XML-NODE-NAME "..."
  FIELD field1    LIKE realtable.field1
  FIELD Title-Pax LIKE realtable.Title-Pax XML-NODE-NAME "title"
  FIELD ...
Fill in the details "...".
 
Top