About PHP dom can not be used domdocument->load directly read the XML written in the current PHP
Source: Internet
Author: User
About PHP Dom can not domdocument->load directly read the XML written in the current PHP
Do you have PHP dom can not domdocument->load read in other locations of the file, and directly read the XML written in the current PHP file As String, there is no way to print out the DOMDocument XML content directly in the page Instead of Domdocument->save saved to another file. No way to find out, please tell me. Thank you
------Solution--------------------
Manual:
Class DOMDocument {
BOOL LoadXML (string source [, int options])
}
That is Domdocument->loadxml (' .... ')
Domdocument->save will return the corresponding XML string regardless of whether there is a file name to save as a parameter
Echo Domdocument->save ()
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