Extracting XHTML Fragments
Brought to you by:
bs_php,
nigelswinson
From: Joseph M. F. <jos...@co...> - 2003-02-05 19:26:25
|
Hello all. I have, what I hope to be, a simple question. What I am doing is extracting XHTML fragments from an XML document. For (a very quick) example: <?xml version="1.0"?> <content_dictionary> <content_item>This is a <b>content</b> test <hr/></content_item> </content_dictionary> If I evaluate the XPath expression of "//content_dictionary/content_item", I recieve the following with an exportAsXML(): <content_item>This is a <b>content</b> test <hr/></content_item> Is there any way that I can obtain the following without having to manually remove the <content_item/>? This is a <b>content</b> test <hr/> Any help would be greatly appreciated. Thank you. --Joseph |