This Question is Possibly Answered

1 "correct" answer available (4 pts) 4 "helpful" answers available (2 pts)
3 Replies Last post: Feb 8, 2010 1:26 PM by Thomas Mercer-Hursh  
Jatinder Singh Newbie 13 posts since
Dec 4, 2009
Currently Being Moderated

Feb 8, 2010 11:45 AM

How to Store XML Data into a TEMP-TABLE

Hello Folks,

 

I have a scenario where I have XML data in complex hierarchy. One of the biggest problem that I have is: how to create TEMP-TABLE structure for really complex XML hierarchies. For example my XML data is in this format:

 

SearchLIst

     Items

          SearchItem

               IndexItem

                    Name

                    Value

                    Size

                    ColumnIndexList

                              RecordId

                              DocId

                    MultiValueList

                              Data 1

                              Data 2

               CLOSEIndexItem

               Operator

               Displayed

          CLOSESearchItem

     CLOSEItems

CLOSESearchList

 

As you can see that the above (please see the attached document for exact XML) hierarchy is very complex. I am having a difficulty in creating a TEMP-TABLE for the mentioned XML. After reading through the tutorial Working with XML I learned about a Progress utility called bproxsdto4gl. I am waiting for my provider to send me this XSD file so that I could use this utility.

 

Another question I have is - What is the best way to create TEMP-TABLE definitions? Using bproxsdto4gl OR READ-XML which accepts schema definition as well.

 

Technologies I am using:

 

Progress: 10.2A

Presentation: WebSpeed, IIS

Tools: OpenEdge Architect

 

Thanks for your help!!

Attachments:
Thomas Mercer-Hursh Expert 2,675 posts since
Sep 11, 2007
Currently Being Moderated
Feb 8, 2010 12:22 PM in response to: Jatinder Singh
Re: How to Store XML Data into a TEMP-TABLE

The core issue here is that no single temp-table will handle a multi-valued list within another item.  This will take at least two temp-tables, i.e., a ProDataSet.

Thomas Mercer-Hursh Expert 2,675 posts since
Sep 11, 2007
Currently Being Moderated
Feb 8, 2010 1:26 PM in response to: Jatinder Singh
Re: How to Store XML Data into a TEMP-TABLE

Have you tried READ-XML with a PDS as the target?

 

Have you considered using Stylus Studio to create an XSD for you?

More Like This

  • Retrieving data ...