1. Ong Chin Keat
  2. PowerBuilder
  3. Friday, 16 February 2024 06:43 AM UTC

hi GURUs,

Would like to get your advise how PB datawindow XML template can be build according to UBL-Invoice-2.0.XSD  and ultimately the datawindow can export to XML format accordingly (see example output xml file einvoice.xml as attached). Please find attached both UBL-Invoice-2.0.XSD (template) and sample output of einvoice.xml file.

Appreciate anyone help.

regards,

Dev 

Attachments (1)
References
  1. https://docs.oasis-open.org/ubl/UBL-2.1.html
Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 16 February 2024 18:06 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Dev;

  The DW's XML processing is restricted to a 2D model (row + column) as per it's Primary Buffer. Your XSD model is more complex. So you will need to use PB's PBDOM feature (see the PB help) for this more complex XML task. That would then involve retrieving the DWO's items one-by-one (via a GetItemXxxx command) and then populating the XML structure using PBDOM's object classes & methods that it provides.   HTH

Regards .. Chris

Comment
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.