Skip to Content
avatar image
Former Member

Parse XML (PowerBuilder)

Hello,

I am using PB 12.5. I have a need to parse a xml feed returned from a webservice. Right now this feed is quite simple and I am using Pos and Mid functions to parse it.

This feed is about to get more complex. Does anyone have techniques/tips to parsing complex xml?

Thank you.

AV

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    Oct 20, 2016 at 06:19 AM

    You may use Powerbuilders XML Parser.

    But I prefer the MSXML DOMDocument ActiveX. It has more functionality.

    Regards,

    René

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2016 at 01:47 PM

    Depending on how complex it is, you might be able to import the XML into a DataWindow.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 22, 2016 at 02:03 AM

    Hi Roland;

    I use PB's PBDOM feature to do this.

    Regards ... Chris

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 19, 2016 at 04:06 PM

    I stored XML Content in Database MS SQL ( column data type is XML ) and used SQL to parse data.

    In my case, it worked well..

    Regards

    Jahir.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 24, 2016 at 02:10 PM

    Thanks All. I ended up using MSXML as suggested by René.

    Chris - Can you post a PBDOM sample?

    Thanks

    AV

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 25, 2016 at 07:44 PM

    Also ... FYI: www.rgagnon.com/pbdetails/pb-0186.html

    Add comment
    10|10000 characters needed characters exceeded