1. Enrique Perez
  2. PowerBuilder
  3. Saturday, 6 March 2021 16:43 PM UTC

Hi ,

I am trying to parse an xml string using pbdom and I am getting the following error message.

"Error calling method of PBNI object at line -1 in buildfromstring event of object pbdom_builder"

Any idea how to fix this error?

I am using PB 12.5 on Windows Server 2008R2

thanks

Enrique

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 6 March 2021 16:55 PM UTC
  2. PowerBuilder
  3. # 1

Hi Enrique;

  FWIW: Get rid of the PBNI approach. Just add the PBDOM126.pbd to your App's "Library" list & go from there. Once you upgrade to an Appeon PB version - for example PB 2019), just replace the .PBD file with PBDOM190.pbd and away you go. Super easy.

Regards ... Chris

Comment
There are no comments made yet.
Enrique Perez Accepted Answer Pending Moderation
  1. Saturday, 6 March 2021 17:00 PM UTC
  2. PowerBuilder
  3. # 2

I will try that approach.

I already imported PBDOM extension, what should I do with that?

thanks

Enrique

Comment
  1. Chris Pollach @Appeon
  2. Saturday, 6 March 2021 22:32 PM UTC
Hi Enrique;

There is the XML DataWindow but the datum has to be a simple 2D structure in order to use that feature. Anything more complex & you'll need PBDOM.

Also, FYI: http://www.example-code.com/powerbuilder/xml.asp

Regards ... Chris

  1. Helpful
  1. Enrique Perez
  2. Saturday, 6 March 2021 23:33 PM UTC
Hi Chris



Going by adding pbdom125.pbd to my library path and removing the imported objects, do I need to copy pbdom125.pbd to the executable folder?



Regards

Enrique
  1. Helpful
  1. Chris Pollach @Appeon
  2. Sunday, 7 March 2021 00:53 AM UTC
Yes sir! ;-)
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


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