on 10-19-2016 3:49 PM
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
You may use Powerbuilders XML Parser.
But I prefer the MSXML DOMDocument ActiveX. It has more functionality.
Regards,
René
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roland;
I use PB's PBDOM feature to do this.
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Depending on how complex it is, you might be able to import the XML into a DataWindow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also ... FYI: www.rgagnon.com/pbdetails/pb-0186.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks All. I ended up using MSXML as suggested by René.
Chris - Can you post a PBDOM sample?
Thanks
AV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.