Working with XML In PHP

XML stands for eXtensible Markup Language. It is a specification for creating own markup languages. In turn, a user can use these markup languages to create documents. Like HTML, an XML document contains elements and attributes in the form of tags.

PHP has many XML – related functions that can easily be used to work with XML documents, or transform non – XML data into XML documents.

Here are the numbers of function of XML:

    • xmlrpc_decode_request — This function is used to decode XML into native PHP types.

 

    • xmlrpc_decode — This function is used to decode XML into native PHP types.

 

    • xmlrpc_encode_request — This function is used to generate XML for a method request.

 

    • xmlrpc_encode — This function is used to generate XML for a PHP value.

 

    • xmlrpc_get_type — This function is used to get xmlrpc type for a PHP value.

 

    • xmlrpc_is_fault — This function is used to determine if an array value represents an XMLRPC fault.

 

    • xmlrpc_parse_method_descriptions — This function is used to decode XML into a list of method descriptions.

 

    • xmlrpc_server_add_introspection_data — This function is used to add introspection documentation.

 

    • xmlrpc_server_call_method — This function is used to parses XML requests and call methods.

 

    • xmlrpc_server_create — This function is used to create an xmlrpc server.

 

    • xmlrpc_server_destroy — This function is used to destroy server resources.

 

    • xmlrpc_server_register_introspection_callback — This function is used to Register a PHP function to generate documentation.

 

    • xmlrpc_server_register_method — This function is used to register a PHP function to resource method matching method_name.

 

  • xmlrpc_set_type — This function is used to set xmlrpc type, base64 or datetime, for a PHP string value.
Scroll to Top