Use simplexml_load_file to load xml file : XML File Read : XML PHP Source Code
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
PHP Source Code
»
XML
»
XML File Read
»
Use simplexml_load_file to load xml file
<?php
$xml = simplexml_load_file
(
"contact.xml"
)
;
var_dump
(
$xml
)
;
?>
HTML code for linking to this page:
Related in same category :
XML file dump
simplexml_load_file
PHP Function Reference -> Users Code Examples / Notes - > XML File Read:
Building PHP using DSW files [PHP 4]
Read the FAQ
The configuration file
Case 1: only public files served
Filesystem Security
Handling file uploads
Uploading multiple files
Using remote files
apc_compile_file
bcompiler_read
bcompiler_write_file
bcompiler_write_functions_from_file
bcompiler_write_included_filename
bzread
cpdf_save_to_file
cpdf_set_font_map_file
curl_multi_info_read
dio_read
readdir
DOMDocument->loadHTMLFile()
DOMDocument->loadXML()
DOMDocument->saveHTMLFile()
DOMDocument->saveXML()
DOMDocumentFragment->appendXML()
dom_import_simplexml
DOM XML Functions
DomDocument->dump_file
DomXsltStylesheet->result_dump_file()
domxml_new_doc
domxml_open_file
domxml_open_mem
domxml_version
domxml_xmltree
domxml_xslt_stylesheet_doc
domxml_xslt_stylesheet_file
domxml_xslt_stylesheet
domxml_xslt_version
exif_read_data
read_exif_data
File Alteration Monitor Functions
fam_monitor_file
fdf_get_file
fdf_set_file
Fileinfo Functions
finfo_file
filePro Functions
filepro_fieldcount
filepro_fieldname
filepro_fieldtype
filepro_fieldwidth
filepro_retrieve
filepro_rowcount
filepro
Filesystem Functions
file_exists
file_get_contents
file_put_contents
file
fileatime
filectime
filegroup
fileinode
filemtime
fileowner
fileperms
filesize
filetype
fread
is_file
is_readable
is_uploaded_file
move_uploaded_file
parse_ini_file
readfile
readlink
set_file_buffer
tmpfile
fbsql_read_blob
fbsql_read_clob
geoip_db_filename
HaruDoc::readFromStream
hash_file
hash_hmac_file
hash_update_file
HttpRequest::addPostFile
HttpRequest::getPostFiles
HttpRequest::getPutFile
HttpRequest::setPostFiles
HttpRequest::setPutFile
HttpResponse::getFile
HttpResponse::setFile
http_put_file
http_send_file
hw_api_content->read
db2_lob_read
Imagick::getFilename
Imagick::getImageFilename
Imagick::getImageProfile
Imagick::getImageProfiles
Imagick::pingImageFile
Imagick::profileImage
Imagick::readImageBlob
Imagick::readImageFile
Imagick::readImage
Imagick::removeImageProfile
Imagick::setFilename
Imagick::setImageFilename
Imagick::setImageProfile
Imagick::spreadImage
imap_thread
ifx_blobinfile_mode
ifxus_read_slob
ircg_set_file
ldap_read
libxml Functions
libxml_clear_errors
libxml_get_errors
libxml_get_last_error
libxml_set_streams_context
libxml_use_internal_errors
notes_mark_read
notes_mark_unread
notes_unread
mailparse_msg_extract_part_file
mailparse_msg_extract_whole_part_file
mailparse_msg_parse_file
maxdb_disable_reads_from_master
maxdb_enable_reads_from_master
maxdb_thread_id
maxdb_thread_safe
m_setdropfile
m_setssl_cafile
m_setssl_files
SWFMovie->saveToFile()
highlight_file
mysql_thread_id
mysqli_disable_reads_from_master
mysqli_enable_reads_from_master
mysqli_set_local_infile_default
mysqli_set_local_infile_handler
mysqli_thread_id
mysqli_thread_safe
OCI-Lob->read
OCI-Lob->saveFile
OCI-Lob->writeToFile
ocisavelobfile
ociwritelobtofile
odbc_longreadlen
openssl_csr_export_to_file
openssl_pkcs12_export_to_file
openssl_pkcs12_read
openssl_pkey_export_to_file
openssl_x509_export_to_file
openssl_x509_read
ovrimos_longreadlen
Paradox File Access
px_set_blob_file
parsekit_compile_file
PDF_attach_file
PDF_load_iccprofile
PDF_open_file
PDF_open_image_file
Phar->compressAllFilesBZIP2
Phar->compressAllFilesGZ
Phar->uncompressAllFiles
PharFileInfo->chmod
PharFileInfo::__construct
PharFileInfo->getCompressedSize
PharFileInfo->getCRC32
PharFileInfo->getMetaData
PharFileInfo->getPharFlags
PharFileInfo->isCompressed
PharFileInfo->isCompressedBZIP2
PharFileInfo->isCompressedGZ
PharFileInfo->isCRCChecked
PharFileInfo->setCompressedBZIP2
PharFileInfo->setCompressedGZ
PharFileInfo->setMetaData
PharFileInfo->setUncompressed
get_included_files
get_required_files
php_ini_scanned_files
zend_thread_id
pg_lo_read_all
pg_lo_read
ps_include_file
ps_open_file
ps_open_image_file
Rar::getFileTime
GNU Readline
readline_add_history
readline_callback_handler_install
readline_callback_handler_remove
readline_callback_read_char
readline_clear_history
readline_completion_function
readline_info
readline_list_history
readline_on_new_line
readline_read_history
readline_redisplay
readline_write_history
readline
recode_file
RPM Header Reading Functions
runkit_lint_file
SDO XML Data Access Service Functions
SDO_DAS_XML_Document::getRootDataObject
SDO_DAS_XML_Document::getRootElementName
SDO_DAS_XML_Document::getRootElementURI
SDO_DAS_XML_Document::setEncoding
SDO_DAS_XML_Document::setXMLDeclaration
SDO_DAS_XML_Document::setXMLVersion
SDO_DAS_XML::addTypes
SDO_DAS_XML::create
SDO_DAS_XML::createDataObject
SDO_DAS_XML::createDocument
SDO_DAS_XML::loadFile
SDO_DAS_XML::loadString
SDO_DAS_XML::saveFile
SDO_DAS_XML::saveString
shmop_read
SimpleXML functions
SimpleXMLElement->addAttribute()
SimpleXMLElement->addChild()
SimpleXMLElement->asXML()
SimpleXMLElement->attributes()
SimpleXMLElement->children()
SimpleXMLElement->__construct()
SimpleXMLElement->getDocNamespaces()
SimpleXMLElement->getName()
SimpleXMLElement->getNamespaces()
SimpleXMLElement->registerXPathNamespace()
SimpleXMLElement->xpath()
simplexml_import_dom
simplexml_load_file
simplexml_load_string
snmp_read_mib
socket_read
DirectoryIterator::getFilename
DirectoryIterator::isFile
DirectoryIterator::isReadable
SimpleXMLIterator::current
SimpleXMLIterator::getChildren
SimpleXMLIterator::hasChildren
SimpleXMLIterator::key
SimpleXMLIterator::next
SimpleXMLIterator::rewind
SimpleXMLIterator::valid
ssh2_auth_hostbased_file
ssh2_auth_pubkey_file
ssh2_sftp_readlink
md5_file
sha1_file
svn_fs_file_contents
svn_fs_file_length
svn_fs_is_file
svn_fs_make_file
swf_closefile
swf_openfile
tidy_is_xml
tidy_parse_file
tidy_repair_file
xdiff_file_diff_binary
xdiff_file_diff
xdiff_file_merge3
xdiff_file_patch_binary
xdiff_file_patch
XML Parser Functions
xml_error_string
xml_get_current_byte_index
xml_get_current_column_number
xml_get_current_line_number
xml_get_error_code
xml_parse_into_struct
xml_parse
xml_parser_create_ns
xml_parser_create
xml_parser_free
xml_parser_get_option
xml_parser_set_option
xml_set_character_data_handler
xml_set_default_handler
xml_set_element_handler
xml_set_end_namespace_decl_handler
xml_set_external_entity_ref_handler
xml_set_notation_decl_handler
xml_set_object
xml_set_processing_instruction_handler
xml_set_start_namespace_decl_handler
xml_set_unparsed_entity_decl_handler
XML-RPC Functions
xmlrpc_decode_request
xmlrpc_decode
xmlrpc_encode_request
xmlrpc_encode
xmlrpc_get_type
xmlrpc_is_fault
xmlrpc_parse_method_descriptions
xmlrpc_server_add_introspection_data
xmlrpc_server_call_method
xmlrpc_server_create
xmlrpc_server_destroy
xmlrpc_server_register_introspection_callback
xmlrpc_server_register_method
xmlrpc_set_type
XMLReader functions
XMLReader::close
XMLReader::expand
XMLReader::getAttribute
XMLReader::getAttributeNo
XMLReader::getAttributeNs
XMLReader::getParserProperty
XMLReader::isValid
XMLReader::lookupNamespace
XMLReader::moveToAttribute
XMLReader::moveToAttributeNo
XMLReader::moveToAttributeNs
XMLReader::moveToElement
XMLReader::moveToFirstAttribute
XMLReader::moveToNextAttribute
XMLReader::next
XMLReader::open
XMLReader::read
XMLReader::setParserProperty
XMLReader::setRelaxNGSchema
XMLReader::setRelaxNGSchemaSource
XMLReader::XML
XMLWriter Functions
XMLWriter::endAttribute
XMLWriter::endCData
XMLWriter::endComment
XMLWriter::endDocument
XMLWriter::endDTDAttlist
XMLWriter::endDTDElement
XMLWriter::endDTDEntity
XMLWriter::endDTD
XMLWriter::endElement
XMLWriter::endPI
XMLWriter::flush
XMLWriter::fullEndElement
XMLWriter::openMemory
XMLWriter::openURI
XMLWriter::outputMemory
XMLWriter::setIndentString
XMLWriter::setIndent
XMLWriter::startAttributeNS
XMLWriter::startAttribute
XMLWriter::startCData
XMLWriter::startComment
XMLWriter::startDocument
XMLWriter::startDTDAttlist
XMLWriter::startDTDElement
XMLWriter::startDTDEntity
XMLWriter::startDTD
XMLWriter::startElementNS
XMLWriter::startElement
XMLWriter::startPI
XMLWriter::text
XMLWriter::writeAttributeNS
XMLWriter::writeAttribute
XMLWriter::writeCData
XMLWriter::writeComment
XMLWriter::writeDTDAttlist
XMLWriter::writeDTDElement
XMLWriter::writeDTDEntity
XMLWriter::writeDTD
XMLWriter::writeElementNS
XMLWriter::writeElement
XMLWriter::writePI
XMLWriter::writeRaw
XSLTProcessor::transformToXML
Zip File Functions
zip_entry_filesize
zip_entry_read
zip_read
ZipArchive::addFile
gzfile
gzread
readgzfile
Reading []
Migrating Configuration Files
Migrating Configuration Files
File Uploads
XML Manipulation
File System and Process Control
File System Related Extensions
HTTP File upload variables: $_FILES
Filesystem
PHP Source Code
XML
»
XML File Read
DOM Edit
SAX
XML Attributes
XML DOM Tree
XML File Read
XML Handler
XML Path
XML Transformation
XML Validation
DOM
Chart
Class
COM and .Net (Windows)
Components
Cookie Session
Data Structure
Databases
Design Patterns
Development
Email
File Directory
Form
Functions
Graphics Image
HTML
Language Basics
Login Authentication
Math
MySQL Database
Network
String
Web Services SOAP WSDL
XML