Extracting URL pointer within XML tag


Posted on 16th Feb 2014 07:03 pm by admin

Hi.

I'm trying to extract text between two quotation marks in XML. For example, I want to extract:

Did you know?Explore Trending and Topic pages for more stories like this.
<a href="www.thisisanexample.com">Click here</a>. I want to extract www.thisisanexample.com. But the data I want to extract does not necessarily have to be <a href> link. It could be <car>, etc...

So far I have tried using simpleXML and regex but I seem to be at a dead end. Simplexml I was able to extract the data between tags, which is useful, but I want data that's inside the tags themselves.

Any insight would be greatly
No comments posted yet

Your Answer:

Login to answer
179 Like 21 Dislike
Previous forums Next forums
Other forums

Collecting AOL Search Terms
I am attempting to collect AOL search terms. I know the code is correct (it works for google, bing,

paginate search result
Hi, I have a paginations script to display data from my database but i would like to paginate someon

php forms and database navigatio
Hello,
I'm new to php and i'd like to post the following.
I have written code to get records f

UDS 4.0 Datatype issue
UDS 4.0.322 -- connecting to NI Labview 9.0

When using connection method: Cache with live

Internal Server Error issues
This has been bothering me for weeks and I've been trying to solve it without asking for help, but e

Create comparison matrix?
I want to create a comparison script for forum software and was wondering is there any tutorial or b

Help with simple query
Hi,

I'm trying to do a Query with a Union where I want to print the number of rows $tc conta

Request.UrlReferrer
I need to make it so that a page can only be loaded when a button is clicked on a specific page. I d

Keeping data in form
How can I keep whatever I write in the form?

SuperCali PHP Event Calendar
does anyone have any experience with the SuperCali PHP Event Calendar? I could use some assistance

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash