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.