JumpStarter
Programmer
Hi,
I have an xml document that looks like this :
<root>
<abstract id="001">
<heading>Welcome to XML</heading>
<p>This is a text</p>
<p>This is also a text</p>
</abstract>
</root>
I am using PHP 4 and want to fire a XPath eg: "/root/abstract" which has to return the complete abstract xml content. The output i want is :
<abstract id="001">
<heading>Welcome to XML</heading>
<p>This is a text</p>
<p>This is also a text</p>
</abstract>
Its something that MSXML gives with the .xml property. Could i have the PHP 4 code or web site references where i can get information on this.
P.S. This option is available in PHP 5 simple_xml library as the asXML() property.
Thanks for the help in advance.
Regards,
NewTerminator
I have an xml document that looks like this :
<root>
<abstract id="001">
<heading>Welcome to XML</heading>
<p>This is a text</p>
<p>This is also a text</p>
</abstract>
</root>
I am using PHP 4 and want to fire a XPath eg: "/root/abstract" which has to return the complete abstract xml content. The output i want is :
<abstract id="001">
<heading>Welcome to XML</heading>
<p>This is a text</p>
<p>This is also a text</p>
</abstract>
Its something that MSXML gives with the .xml property. Could i have the PHP 4 code or web site references where i can get information on this.
P.S. This option is available in PHP 5 simple_xml library as the asXML() property.
Thanks for the help in advance.
Regards,
NewTerminator