Topic
  • 1 reply
  • Latest Post - ‏2013-01-22T21:07:01Z by SystemAdmin
SystemAdmin
SystemAdmin
746 Posts

Pinned topic XQuery ENTERing inside a link

‏2013-01-22T17:52:39Z |
Hi,
I have the following .xml document:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE AddLinks SYSTEM "AddLinks.dtd">

<AddLinks>
<links>
<emri>Sport</emri>
<linku>http://www.reccenter.siu.edu/index.php/rssintramuralsports/rssimsportsstaffcontact</linku>
</links>

<links>
<emri>Sport</emri>
<linku>http://film.cah.ucf.edu/staff.php</linku>
</links>
</AddLinks>
So, I want to write an XQuery command that will go through those links and get the e-mails (inside them) for me.

What do you suggest me, can you help me please?
Updated on 2013-01-22T21:07:01Z at 2013-01-22T21:07:01Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    746 Posts

    Re: XQuery ENTERing inside a link

    ‏2013-01-22T21:07:01Z  
    Or may be we can do it other way, I got this code in XQuery php:

    $html = new DOMDocument();
    @$html->loadHtmlFile('http://www.seeu.edu.mk');
    $xpath = new DOMXPath( $html );
    $nodelist = $xpath->query( "//div/h3/a/@href" );
    foreach ($nodelist as $n){
    echo $n->nodeValue."\n
    ";
    }

    what should i add to the part: "//div/h3/a/@href" to make it full functional?

    Waiting...