summaryrefslogtreecommitdiff
path: root/ext/xmlreader/examples/xmlreader_string.php
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2005-10-13 21:19:14 +0000
committerRob Richards <rrichards@php.net>2005-10-13 21:19:14 +0000
commit5abf267c117768ee92d8bf92b5d80b3d0069249b (patch)
tree755c83af7ae45c575f362d80bc9ad603622dc5b1 /ext/xmlreader/examples/xmlreader_string.php
parente6dbb50a402f23caeab919d2503d00e10d9f8695 (diff)
downloadphp-git-5abf267c117768ee92d8bf92b5d80b3d0069249b.tar.gz
move constants to class
Diffstat (limited to 'ext/xmlreader/examples/xmlreader_string.php')
-rw-r--r--ext/xmlreader/examples/xmlreader_string.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xmlreader/examples/xmlreader_string.php b/ext/xmlreader/examples/xmlreader_string.php
index d545c22c8b..f267245fd9 100644
--- a/ext/xmlreader/examples/xmlreader_string.php
+++ b/ext/xmlreader/examples/xmlreader_string.php
@@ -13,11 +13,11 @@ $xmlstring = '<books>
$reader = new XMLReader();
$reader->XML($xmlstring);
while ($reader->read()) {
- if ($reader->nodeType != XMLREADER_END_ELEMENT) {
+ if ($reader->nodeType != XMLREADER::END_ELEMENT) {
print "Node Name: ".$reader->name."\n";
print "Node Value: ".$reader->value."\n";
print "Node Depth: ".$reader->depth."\n";
- if ($reader->nodeType==XMLREADER_ELEMENT && $reader->hasAttributes) {
+ if ($reader->nodeType==XMLREADER::ELEMENT && $reader->hasAttributes) {
$attr = $reader->moveToFirstAttribute();
while ($attr) {
print " Attribute Name: ".$reader->name."\n";