Would be glad for the code, send it me as an attachment cause the list can be finicky. :)
(Or in other words, it needs to be plain text and end in .txt.) -adam On Wed, 7 Jan 2004, Blake Schwendiman wrote: > BTW, I can send my source implementation of my toString() method which > returns the full content. Then you can do what you need in terms of > renaming, etc. > > Thanks! > > Blake Schwendiman > > > ----- Original Message ----- > From: "Adam Maccabee Trachtenberg" <[EMAIL PROTECTED]> > To: "Marcus Boerger" <[EMAIL PROTECTED]> > Cc: "Blake Schwendiman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Wednesday, January 07, 2004 4:59 PM > Subject: Re: [PHP-DEV] SimpleXML and Default Cast To String > > > > On Thu, 8 Jan 2004, Marcus Boerger wrote: > > > > > From my opinion the current behavior is perfect because i see simplexml > from > > > an xml developers side and not from an html developers side. The former > must > > > typically know exactly where his strings comme from while the latter has > > > only text to deal with and often has situations where he needs to filter > out > > > formatting tags like the <i> in the example. > > > > All of my SimpleXML work is strictly XML, too. However, my thought was > > that I could always call strip_tags() to eliminate the information I > > didn't want, but there was no apply_tags() function to do the > > reverse. :) Therefore, it was better to use the other method. > > > > > So i'd say let us add a method for returning the complete content. Adam > > > could you do that? > > > > That wouldn't be too difficult (although I am busy for the next day or > > two). However, as much as I loathe toggles, I'm wondering if it > > wouldn't be better to make this an object-wide setting. My thought are > > that on an object-by-object basis, you either always want tags or > > never want them. > > > > Something like: > > > > $sxe = simplexml_load_file('doc.xml'); > > $sxe->displayTags = true; > > > > This would keep the interface clean. Or would that just confuse things > > with more magic? > > > > Also, what would the default behavior should be? I can argue both > > sides of the issue right now. :) > > > > -adam > > > > -- > > [EMAIL PROTECTED] > > > > -- [EMAIL PROTECTED] author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php