IT. Expert System.

PHP

Evaluates the XPath Location Path in the given string


xpath_eval_expression

(PHP 4)

xpath_eval_expression Evaluates the XPath Location Path in the given string

Description

XPathObject XPathContext::xpath_eval_expression ( string $expression [, domnode $contextnode ] )
XPathObject xpath_eval_expression ( XPathContext $xpath_context , string $expression [, domnode $contextnode ] )

Example #1 xpath_eval_expression() Example

<?php

include("example.inc");

if (!
$dom domxml_open_mem($xmlstr)) {
    echo 
"Error while parsing the document\n";
    exit;
}

$xpath xpath_new_context($dom);
var_dump(xpath_eval_expression($xpath'/chapter/@language'));

?>

The above example will output:

 object(XPathObject)(2) { ["type"]=> int(1) ["nodeset"]=> array(1) {  [0]=>  object(domattribute)(5) {  ["type"]=>  int(2)  ["name"]=>  string(8) "language"  ["value"]=>  string(2) "en"  [0]=>  int(7)  [1]=>  int(138004256)  } } } 

See also xpath_eval().



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1884 / 96399365. Delta: 0.02865 с