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

how to load php class from another domain?
how to load php class from another domain?

Display data returned from Ajaxservices!!
I have a question about displaying results using ajax. I have part of the code below.
$.ajax({

This is driving me nuts!
This insert query looks to be alright, however I get this error:

QuoteYou have an error in yo

whats wrong with my code please help!!!
this is the error


Warning: mysql_close(): supplied argument is not a valid MySQL-Link res

GIS appliction help
I found some tutorials in the internet to develop a map application I don't want to use google maps

Redirecting Admin
In my members table, I have a field called "perm" and it's set to zero for all members. Ho

FTP issues
Hi all,


I am currently facing some serious problems with a script and really need some ad

cyrillic string conversion question
Hello,

First time here...

I would like to know if there is a way to convert a

small inaccuracies
I have this code to convert fractional base 10 into base 2:

while($num > 0)

duplicate record notification
In my database, after insertion of records, I want to know if the record inserted is duplicate or no

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