Retrieving InnerXML in PHP DOM

This is a discussion on Retrieving InnerXML in PHP DOM within the PHP Language forums, part of the PHP Programming Forums category; Hi, I'm trying to return the inner XML from a DOM element, but I can't find any methods ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-11-2003
Jason Sobell
 
Posts: n/a
Default Retrieving InnerXML in PHP DOM

Hi,
I'm trying to return the inner XML from a DOM element, but I can't find
any methods that allow this.
For example, if I have a string:
<TEXT>Here is a string with <B>bold</B> text in it</TEXT>
then I want to return the enclosed string _including_ the <B> tags:
"Here is a string with <B>bold</B> text in it"

Using get_content strips out the tags.
"Here is a string with bold text in it"

Does anyone have any suggestions?

Cheers,
Jason
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0