PHP How to convert XML string to XML, to master the detailed

Source: Internet
Author: User
Tags string to file
How PHP converts XML strings to XML for expert explanation
I used file_get_contents () to get an XML string, how to convert to XML, read a lot of articles, are used simplexml_load_string (); What to do next?

------Solution--------------------
Http://topic.csdn.net/u/20120229/17/2d8adf3f-5273-4330-a399-b67b5e395e3d.html
The #17 content and related content of this post.
The specific is:
1. Compile the array into XML string Dump_xml_config ();
2. Write XML string to file File_put_contents_safe ();
3, http://topic.csdn.net/u/20120228/09/cf787cd0-5936-4a15-9661-895f362b5b16.html
#10, convert the contents of the XML file to an array of parse_xml_config ().
You can take what you need.
------Solution--------------------
Simplexml_load_string (); then the DOM of the XML. What to do next, ask what you are going to do next.
Operation of SimpleXML:
Http://www.w3school.com.cn/php/php_ref_simplexml.asp
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.