Home
PHP
Chart
Class
Components
Cookie Session
Data Structure
Data Type
Date
Design Patterns
Development
DNS
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
Operator
PDF
Reflection
Statement
String
Utility Function
Web Services SOAP WSDL
XML
Menu
simplexml_load_file.php : simplexml_load_string « XML « PHP
PHP
XML
simplexml_load_string
simplexml_load_file.php
<?php $xml = simplexml_load_file(
"books.xml"
); var_dump($xml); ?>
Related examples in the same category
1.
Accessing identically named elements
2.
Adding attributes
3.
Changing elements and attributes
4.
Loop through children
5.
Loading an XML document from a file
6.
Fetching a remote XML document
7.
Parsing XML in a string
8.
Parsing an XML Document with SimpleXML
9.
Loading a remote XML document
10.
Outputting XML
11.
Using SimpleXML to extract data
12.
Simple XML
13.
Print XML element attributes
14.
Printing sub-element contents
15.
Saving an XML document to a file