我现在需要DOM调用的是xml文档,而不是路径怎么写啊?
$doc = new DOMDocument; //xml开始解析
$doc->load("<?xml version="1.0" encoding='ISO-8859-1'?>
<note>
<to>George</to>
<from>John</from>
<heading>Reminder</heading>
<body>Don't forget the meeting!</body>
</note>");我需要的是这样的效果,该怎么弄啊?