PHPでSimpleXMLを使用する方法がわかりません。SimpleXMLを使用して属性と値を取得
<?xml version="1.0" encoding="UTF-8" ?>
<eventlog version="1.1">
<event source="Firewall" timeStamp="1308433939" type="0" deleted="0" bodyLength="218">
<subject>Network access detected</subject>
<action>Allowed</action>
<message>The program c:\xampp\apache\bin\httpd.exe attempted to connect to the Internet. The program used the protocol TCP on port 80.</message>
</event>
</eventlog>
私はこれを取得する必要があります: ソース、タイムスタンプ、件名、アクション、メッセージ
私はちょうどそれを得ることはありません。ここ
は私のXMLファイルのexempleです。誰かがこれで私を助けてくれますか?
質問は、質問と答えの答えです。私はあなたの編集を以下の答えに移しました:http://stackoverflow.com/a/14194288/367456 - あなたが好きなら同じことをすることができます。私は私のコピーを削除します。 – hakre