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:

<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

179 Like 21 Dislike
Previous php-forum Next php-forum
Other php-forum

Loop column after 2 results
Hello All.

Here is what I have:

Client ID Company name Clien

Probably a simple error...
I'm getting the error -- Parse error: syntax error, unexpected '{' in /home/content/c/s/t/csteffen24

what does this mean? +=
is anyone able to explain what this code is saying?

i had it written for me awhile back and n

iMatch stored value with the current value in a loop
Hello,

I have a MySQL db were I store articles in.

I have a form to fill these article

PHP XML extraction text
I would like to extract an xml text and have that text directly echo(print) out on my web page. Her

Two warning messages
Quote<b>Warning</b>: mysql_real_escape_string() expects parameter 1 to

Php - mysql select?
hi, i have this code:

Code: <?php
session_start();
// dBase file
include &quo

Disable html within defined tags
I have a mysql database that allows users to enter content with html, but I also want to have a tag

Adding to an Int row in db
Hi, i have a database which houses all of the users of my site. One of the columns is for points whi

php mailer
How can i send a mail to large no, say 50,000 reciepients using [color=#0000FF]php mailer[/color]

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