We help IT Professionals succeed at work.

Grab XML code? from ebay site and put it into a MEMO1

boycoder
boycoder asked
on
565 Views
Last Modified: 2012-06-27
Hi

when i click View source on the ebay page, i want to be able to pull some text into a memo1.
Im using twebbrowser, so it will need to be under when the document is complete.
The page is:

http://pages.ebay.co.uk/help/pay/payingforitems.html


Top questions
How do I know how much to pay?

How do I confirm my postal address?

Why doesn't my item appear as 'paid'?

How do I pay for my item?



This is not the exact code i want, as you will have to login to get this. However, if i understand this, i will be able to edit the code to suit my needs. Thankyou very much.
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2011

Commented:
>   "i want to be able to pull some text into a memo1"
uses MSHTML;

procedure TForm1.WebBrowser1DocumentComplete(ASender: TObject;
  const pDisp: IDispatch; var URL: OleVariant);
var
  Doc : IHTMLDocument2;
begin
  If Assigned(WebBrowser1.Document) Then
    begin
      Doc := (WebBrowser1.Document AS IHTMLDocument2);
      Memo1.Text := Doc.Body.innerText;
   end;
end;

Open in new window


Can you explain more for the rest of the requirements please?

Author

Commented:
Hi mate, that code worksa treat, but how do i only show a particular part of the page?

The part i want to show is the address...  can we cut it all out somehow?

I need:

Richard Hobson
21 thomas Westall Way, testing
North Shields Tyne and Wear N75544
United Kingdom
(0191) 296345563

and

Printer versionBuyer:Member ID techno0techs5tv ( Feedback score of d256) Contact buyer

to show in edit7.text


Skip to main contentBuyMy eBaySellCommunityContact usHelpHello, Simon (emailedxboxlve). Sign outShop now to earn eBay Plus points. 
Enter your search keywordSelect a category for searchAll CategoriesAntiquesArtBabyBooks, Comics & MagazinesBusiness, Office & IndustrialCars, Motorcycles & VehiclesClothes, Shoes & AccessoriesCoinsCollectablesComputingConsumer ElectronicsCraftsDolls & BearsDVD, Film & TVEvents TicketsHealth & BeautyHolidays & TravelHome & GardenJewellery & WatchesMobile & Home PhonesMusicMusical InstrumentsPhotographyPottery, Porcelain & GlassPropertySporting GoodsSports MemorabiliaStampsToys & GamesVehicle Parts & AccessoriesVideo GamesWholesale & Job LotsEverything ElseAdvanced
CATEGORIES FASHIONDAILY DEALS 
Bread Crumb LinkHome > My eBay > Order details
Ad Feedback|AdChoice - opens in a new window or tab



Order details

Shipment details

Delivery details

Richard Hobson
21 thomas Westall Way, testing
North Shields Tyne and Wear N75544
United Kingdom
(0191) 296345563


Payment details



Order details
Item title Available actionsPostage & packaging (estimated delivery*)Price

Printer versionBuyer:Member ID techno0techs5tv ( Feedback score of d256) Contact buyer

Paid on 24-Apr-11 via PayPal



Item title:2100trgfhfgtaph - opens in a new window or tab
Item ID:130510645620417 - Price: £137.49
Quantity:1

Print postage

Other 24 Hour Courier: Free
Estimated delivery: April 27£17.49


Payment instructions:
Please do not email us asking "where is my item" we have live chat or telephone for this, thanks.



Subtotal:£1eee7.49

Postage & packaging:Free

Total:£1766.49













About SSL Certificates

Shop with confidence.  Learn more

Copyright © 1995-2011 eBay Inc. All Rights Reserved. Designated trademarks and brands are the property of their respective owners. Use of this website constitutes acceptance of the eBay User Agreement and Privacy Policy.

PulldownMenu Open Start of layer

PulldownMenu End of layer
Print postageMark as dispatchedView PayPal transaction- opens in a new window or tabView purchased item- opens in a new window or tabContact buyerUnmark as payment receivedSell similar
Popular products




No suggestions.
Hide eBay suggestions

Open in new window

Author

Commented:
Printer versionBuyer:Member ID techno0techs5tv ( Feedback score of d256) Contact buyer

needs to be displayed in the edit box as

techno0techs5tv 'has a Feedback score of' d256
CERTIFIED EXPERT
Top Expert 2011

Commented:
So you want the lines between "Delivery details" and "Payment details" as well as the line of "Printer versionBuyer:" which are fixed terms, is that so?

Author

Commented:
Yea its the same format, prices on that page may change, but the lines will all be the same in number.

Author

Commented:
They arnt fixed, they will all change.. but the format is always the same.
CERTIFIED EXPERT
Top Expert 2011
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
amazing, thanks!!!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.