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

No comments posted yet

Your Answer:

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

Form a inline view based on the results of the previous query?
Hi Experts,
Can we form a inline view on the results of a previous query (another inline view)?

Phase Error I can't seem to find :(`
Hey guys, I can seem to find my phase error on this. I am getting this error

[error]
Pars

Parse Error with doctype
I'm getting a parse error with this simple code. I don't get it. It worked one time then when I relo

php web service error
hey guys,
I'm working on a project requires the use of web services. I've been trying a few tutor

Problem in String replace program's output
Hi all,
I was trying to make a program which accepts a string and replaces it with another stri

Help with writing "$" with fopen
I just can't get my syntax correct. Could someone help me please? I am trying to write a connect fil

how to use two buttons with php
hi i have one form. there are three fields which are to be filled by the user. and then there are tw

help me fix these syntax errors...
I keep getting multiple syntax errors on this script like this one:

Parse error: syntax error

$variable = $variable
Hello

Sorry if this is a really simple question but I have run out of ideas. Is there a reall

Table colours fail when extra row added
Hey Gurus,

I got a weird problem with formating the colour of a table made in php. Everything

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