Explore the STREXTRACT() function, this might get you what you need.
Main Topics
Browse All TopicsHow do I get data from a browser page of XML into a table? I opened the page with an instance of the Internet Explorer object. This is code I inherited so I don;t know much about it - yet . . . ugh
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I appreciate the replies but what I need is a sample code snipit. How do I access the browser text? Imagine a browser display of a pure XML because that is what I have. I create a browser object, give it a url with parameters and get back XML; but how do I access the XML from the browser object? This is probably VERY VERY trivial but I'm just not getting it.
Code might look like this:
Create browser object
browserobject.url_string_w
browserobject.execute
var = xml_to_data(browserobject.
I don't know . . . .
Here is what I see. I want the contact information' address and phone. There may be more than one value returned as in any ambiguous auery,
<?xml version="1.0" encoding="UTF-8" ?>
- <wp:wp xmlns:wp="http://api.white
<wp:result wp:type="success" wp:message="" wp:code="Found Data" />
- <wp:meta>
<wp:linkexpiration>2008-11-2
<wp:recordrange wp:lastrecord="2" wp:firstrecord="1" wp:totalavailable="2" />
<wp:apiversion>1.0</wp:apiver
- <wp:searchlinks>
<wp:link wp:linktext="Whitepages.co
<wp:link wp:linktext="Link to this api call" wp:type="self">http://api.w
<wp:link wp:linktext="View All Results" wp:type="allresults">http:/
<wp:link wp:linktext="View Work Listings" wp:type="worklistings">http
</wp:searchlinks>
</wp:meta>
- <wp:listings>
- <wp:listing>
- <wp:people>
- <wp:person wp:rank="primary">
<wp:firstname>Gene</wp:firstn
<wp:middlename>R</wp:middlena
<wp:lastname>Head</wp:lastnam
</wp:person>
- <wp:person wp:rank="secondary">
<wp:firstname>Jacqueline</wp:
<wp:middlename>J</wp:middlena
<wp:lastname>Head</wp:lastnam
</wp:person>
</wp:people>
- <wp:phonenumbers>
- <wp:phone wp:type="home" wp:rank="primary">
<wp:fullphone>(503) 625-1768</wp:fullphone>
<wp:areacode>503</wp:areacode
<wp:exchange>625</wp:exchange
<wp:linenumber>1768</wp:linen
</wp:phone>
</wp:phonenumbers>
- <wp:address wp:deliverable="true">
<wp:fullstreet>22344 SW Main St</wp:fullstreet>
<wp:house>22344</wp:house>
<wp:predir>SW</wp:predir>
<wp:street>SW Main St</wp:street>
<wp:streettype>St</wp:streett
<wp:city>Sherwood</wp:city>
<wp:state>OR</wp:state>
<wp:zip>97140</wp:zip>
<wp:zip4>9416</wp:zip4>
<wp:country>US</wp:country>
</wp:address>
- <wp:geodata>
<wp:geoprecision>5</wp:geopre
<wp:latitude>45.354570</wp:la
<wp:longitude>-122.864160</wp
</wp:geodata>
- <wp:listingmeta>
<wp:lastvalidated>03/2008</wp
<wp:type>home</wp:type>
- <wp:moreinfolinks>
<wp:link wp:linktext="Find Neighbors" wp:type="findneighbors">htt
<wp:link wp:linktext="View Map" wp:type="viewmap">http://ww
<wp:link wp:linktext="Driving Directions" wp:type="drivingdirections
<wp:link wp:linktext="View Listing Detail" wp:type="viewdetails">http:
</wp:moreinfolinks>
</wp:listingmeta>
</wp:listing>
- <wp:listing>
- <wp:people>
- <wp:person wp:rank="primary">
<wp:firstname>Gene</wp:firstn
<wp:lastname>Head</wp:lastnam
</wp:person>
</wp:people>
- <wp:business wp:rank="primary">
<wp:businessname>Liftedup</wp
</wp:business>
- <wp:phonenumbers>
- <wp:phone wp:type="work" wp:rank="primary">
<wp:fullphone>(503) 799-5381</wp:fullphone>
<wp:areacode>503</wp:areacode
<wp:exchange>799</wp:exchange
<wp:linenumber>5381</wp:linen
</wp:phone>
</wp:phonenumbers>
- <wp:address wp:deliverable="true">
<wp:fullstreet>22344 SW Main St</wp:fullstreet>
<wp:house>22344</wp:house>
<wp:predir>SW</wp:predir>
<wp:street>SW Main St</wp:street>
<wp:streettype>St</wp:streett
<wp:city>Sherwood</wp:city>
<wp:state>OR</wp:state>
<wp:zip>97140</wp:zip>
<wp:zip4>9416</wp:zip4>
<wp:country>US</wp:country>
</wp:address>
- <wp:geodata>
<wp:geoprecision>5</wp:geopre
<wp:latitude>45.354570</wp:la
<wp:longitude>-122.864160</wp
</wp:geodata>
- <wp:listingmeta>
<wp:lastvalidated>02/2008</wp
<wp:type>work</wp:type>
- <wp:moreinfolinks>
<wp:link wp:linktext="Find Neighbors" wp:type="findneighbors">htt
<wp:link wp:linktext="View Map" wp:type="viewmap">http://ww
<wp:link wp:linktext="Driving Directions" wp:type="drivingdirections
<wp:link wp:linktext="View Listing Detail" wp:type="viewdetails">http:
</wp:moreinfolinks>
</wp:listingmeta>
</wp:listing>
</wp:listings>
</wp:wp>
you would not use a browser object for that, but an XMLRequest. Also take a look at the vfp help topics on wb services, soap and the soap toolkit.
I found that whitepages.com offers an XSD schema you can use to parse their XML results: http://developer.whitepage
Save this xsd as an xsd file. Take a look at the XMLAdapter class, you can set it's XMLSchemalocation to the xsd file and it will use the xsd schema for validating the xml, when you use the LoadXML method and pass on the xml you get by the xmlrequest.
Bye, Olaf.
By your closing request comment I assume the direct problem to get the XML is solved, but now you want more sample code how to work on the retrieved XML.
It's rather specific to each webservice, but there is of coure some general stuff:
typically a webservice is described by a wsdl file, from that you can retreive in a generic way, what methods are offered and what type if parameters are expected and what type of results you get. Aside from this starting point there are several specifications so there is no one size fits all solution to process the xml a webservice returns.
All in all the XML is just the envelope around the real data and webservice methods are like any class methods, they return very individual results, which makes it impossible to have a generic way of handling it. Like there is no generic way to work with any method of any class.
There are some generics on getting the real data unwrapped from the XML. The buzzword is parsing XML. VFP's XMLAdapter is a class giving you rather high level methods, eg after LoadXML() you may find a Tables collection filled (if VFP detcts tabular data embedded in the XML) and can do XMLAdapter.Tables(N).ToCur
Bye, Olaf.
Business Accounts
Answer for Membership
by: tusharkanvindePosted on 2008-11-20 at 20:48:16ID: 23010603
Try tchild.inn erHtml tchild.inn erText
YourIEObject.Document.firs
or
YourIEObject.Document.firs