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

Problem with Subscreen
Dear Experts ,
I am facing a problem with the subscreens. My senario is as follows :

Kill a process
I have a question - how can I kill a process from a command line or by using Oracle SQL Developer? I

defining website tags
Hi,

What would be the best way to define tags for my site, such as website title, url etc.

PHP friend keyword equivalent
is there a PHP equivalent for the C++ friend keyword?

help with image text
Hi ...

see i need the text of the name and number to start in the center and always be in the

square instead of number
Hello
I do not know why but this code seems to work fine only in my xampp local insallation but n

array help
Does anyone know how to require 10 text fields for individual grades and output class average? (10 p

CODE NOT WORKING
Code: [Select]<?php
//include shared codes

include '../lib/common.php';
include

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

need to apply an if/else statement to Tim Thumb script
Not sure how to work this. I essentially want to call a variety of image sizes based on which style

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