note 84704 added to ref.simplexml
| From: | clarkeDOTchrisatgoogleymailDOTcom at osu1 dot php dot net | Date: | Sat, 26 Jul 2008 03:33:17 +0000 |
| Subject: | note 84704 added to ref.simplexml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-142757@lists.php.net to get a copy of this message | ||
For clarification, finding attributes seems easier this way, hope I'm not being redundant.
Source XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body type="small" important="low">Don't forget me this
weekend!</body>
</note>
Code Example:
<?
$xml = simplexml_load_file("test.xml");
print $xml->body['type'];
?>
Output:
small
----
Server IP: 216.235.15.211
Probable Submitter: 142.167.41.210
----
Manual Page -- http://www.php.net/manual/en/ref.simplexml.php
Edit -- https://master.php.net/note/edit/84704
Del: integrated -- https://master.php.net/note/delete/84704/integrated
Del: useless -- https://master.php.net/note/delete/84704/useless
Del: bad code -- https://master.php.net/note/delete/84704/bad+code
Del: spam -- https://master.php.net/note/delete/84704/spam
Del: non-english -- https://master.php.net/note/delete/84704/non-english
Del: in docs -- https://master.php.net/note/delete/84704/in+docs
Del: other reasons-- https://master.php.net/note/delete/84704
Reject -- https://master.php.net/note/reject/84704
Search -- https://master.php.net/manage/user-notes.php