What if php operates on xml? Is php operating on xml? For example, & nbsp; can search & nbsp;, paging, etc. ------ solution ---------------------- SimpleXML ------ solution ------------------ SimpleXMLfunctions introduction TheSimpleXMLextensionprovide php if you operate on xml?
Is php operating on xml?
Such as searching and paging
------ Solution --------------------
SimpleXML
------ Solution --------------------
SimpleXML functions
Introduction
The SimpleXML extension provides a very simple and easily usable toolset to convert XML to an object that can be processed with normal property selectors and array iterators.
Requirement
The SimpleXML extension requires PHP 5.
Install
The SimpleXML extension is enabled by default. To disable it, use the -- disable-simplexml configure option.
Or
Php XML syntax parsing function
Introduction
XML (eXtensible Markup Language) is a data format for document exchange on the web. This language is a standard defined by W3C (World Wide Web concortana, World Wide Web organization. You can access the http://www.w3.org/XML/ for more information about XML and its related technologies.
This extension module provides support for James Clark's expat. This toolkit helps parse XML documents (rather than XML documents ). It supports three source code encoding methods, which are also supported by PHP itself: US-ASCII, ISO-8859-1 and UTF-8. UTF-16 is not yet supported by the system.
This extension module allows you to create an XML syntax parser and define the corresponding processor for different XML Events. Each XML parser has several parameters that can be adjusted as needed.
Requirement
This extension module uses the expat compat layer by default. It can also be obtained by accessing the http://www.jclark.com/xml/expat.html using expat. The Makefile file provided by expat does not generate the default extension Library. you can use the following generation rules to implement libexpat. a: $ (OBJS)
Ar-rc $ @ $ (OBJS)
Ranlib $ @
Visit the http://sourceforge.net/projects/expat/ to get the RPM package for the expat source file.
Install
These functions are valid by default, and they use the bundled expat library. You can use the -- disable-xml parameter to block XML support. If you compile PHP into a module of Apache 1.3.9 or later, PHP automatically uses the expat library bound with Apache. If you do not want to use the bound expat library, use the -- with-expat-dir = DIR parameter when running the PHP configure configuration script, DIR should point to the root directory installed by expat.
PHP Windows has built-in support for this extension module. You can use these functions without loading any additional extension libraries.
------ Solution --------------------
1 Manual.
2 input xml
3. create an instance.
4. close.
------ Solution --------------------
$ Xml = xml_parser_create ();
Xml_parse_pai_struct ($ xml, $ post_raw, $ xvals, $ xindexs );