Which function does XML learn? there are many manuals. is simplexml enough?

Source: Internet
Author: User
Which function does XML learn? there are many manuals. is simplexml enough? Which class is used in the general learning manual,


It is difficult to learn which one to learn. it is easy to forget which one is used by the mainstream;


Reply to discussion (solution)

DOM first (DOMDocument)
This fully describes the parsing and generation of XML documents. The disadvantage is that it occupies a large amount of memory.

Followed by SimpleXML
He asked you to have a clear understanding of the XML documents to be processed, which is a simplified version of DOMDocument.
Conversion with DOMDocument

For more information, see the Manual introduction. DOM and simplexml.

Suggestion:
1. browse the xml-related functions and the functions of the functions.
2. in actual use, check the functions required, and then carefully check the related functions.
3. it is not recommended to study these functions. The effect is unexpected.

If you do not use the XML parsing function, you are not recommended to study it.
You just need to know what you can do.
When to use it, and then carefully check the manual to write code.
DOM and simplexml.

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.