cancel
Showing results for 
Search instead for 
Did you mean: 

Parse XML (PowerBuilder)

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

You may use Powerbuilders XML Parser.

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

Regards,

René

Answers (5)

Answers (5)

Former Member

Hi Roland;

I use PB's PBDOM feature to do this.

Regards ... Chris

Former Member

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Chris - Can you post a PBDOM sample?

Thanks

AV

Former Member
0 Kudos

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.