1. luigi venegoni
  2. PowerBuilder
  3. Monday, 10 December 2018

i'm using pbdom in powerbuilder 11.5 to generate a xml from a string, the problem is when i save the string (pbdom_doc.SaveDocument("c:\example\example.xml") ) the empty labels doesnt have the required format,  this is for a third party and they dont accept this format.

 

is there a way to avoid this kind of labels?

 

i update a picture with the example.

Attachments (1)
Accepted Answer
luigi venegoni Accepted Answer Pending Moderation
0
Votes
Undo

first of all, thanks for your answer!

 

yeah that's right, the way i'm doing the xml is not the ideal way, but i really had to do it fast ( and without previous knowledge about how to make xml with powerbuilder.) 

 

that been said, ¿there is just any way or property to just avoid the abbreviation of the empty tags?, so i dont need to rewrite the code, since i wans't able to see any of that in the example you send to me or anywhere else.

 

and again thanks for the answer! 

Comment
  1. Chris Pollach
  2. Tuesday, 11 December 2018
Thanks!! this link: https://archive.sap.com/discussions/thread/3360766 get the answer! i was able to add " empty" values to the labels with my current xml format, with getelementsbytagname and then modify the childern.
  1. luigi venegoni
  2. Tuesday, 11 December 2018
Perfect .. thanks for letting us know what worked for you! :-)
  1. Chris Pollach
  2. Tuesday, 11 December 2018
There are no comments made yet.
  1. Tuesday, 11 December 2018
  2. PowerBuilder
  3. # Permalink
Chris Pollach Accepted Answer Pending Moderation
1
Votes
Undo

Hi Luigi;

  What you are doing is basically just a straight "as is" import / export of your original XML. The PBDOM feature itself has many objects, for example: pbdom_builder, pbdom_document, pbdom_element, pbdom_attribute, etc.

  The key to using PBDOM is very much like a TreeView or ListView control. You need to instantiate other parts of PBDOM model and then use the pbdom_builder main object class's methods to load the various parts of your XMLSchema and Datum. Once that is done properly, you can then properly generate the proper XML output.

  For example: http://gemsres.com/story/jul05/107057/source.html

HTH

Regards .. Chris

 

 

Comment
0

Votes

first of all, thanks for your answer!







yeah that's right, the way i'm doing the xml is not the ideal way, but i really had to do it fast ( and without previous knowledge about how to make xml with powerbuilder.)







that been said, ¿there is just any way or property to just avoid the abbreviation of the empty tags?, so i dont need to rewrite the code, since i wans't able to see any of that in the example you send to me or anywhere else.







and again thanks for the answer!
  1. luigi venegoni
  2. Tuesday, 11 December 2018
There are no comments made yet.
  1. Monday, 10 December 2018
  2. PowerBuilder
  3. # 1
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.