Re: [PHP] using DOM functions with embedded html / encoding

2006-03-21 Thread Chris
jonathan wrote: I understand why it is doing it but to be honest, if it's going in as well-formed xml then, it's a bigger problem having these values to be rendered via a 3rd-party stylesheet. Am I expected for them to convert back these entities? Really at that point, the only change that

Re: [PHP] using DOM functions with embedded html / encoding

2006-03-21 Thread jonathan
I understand why it is doing it but to be honest, if it's going in as well-formed xml then, it's a bigger problem having these values to be rendered via a 3rd-party stylesheet. Am I expected for them to convert back these entities? Really at that point, the only change that should take plac

Re: [PHP] using DOM functions with embedded html / encoding

2006-03-21 Thread Chris
jonathan wrote: I'm interested in creating an xml doc from my php5/mysql 4.1 app. I'm using PHP's DOM functions to create the xml file. Some of the text fields now have well-formed html embedded in them. When I do a $dom->createElement('item_name', $clean_slot), it encodes the values to

Re: [PHP] using DOM functions with embedded html / encoding

2006-03-21 Thread jonathan
saveHTML() doesn't change the behavior. regarding decoding the entities, that would normally take place on the client but that is something that I have no control over. is there some way to set a global "preserve entities" when creating the document? ughh -jonathan On Mar 21, 2006,

Re: [PHP] using DOM functions with embedded html / encoding

2006-03-21 Thread Anthony Ettinger
...or you may have to decode the html entities first. On 3/21/06, Anthony Ettinger <[EMAIL PROTECTED]> wrote: > saveHTML();? > > instead of saveXML(); > > On 3/21/06, jonathan <[EMAIL PROTECTED]> wrote: > > I'm interested in creating an xml doc from my php5/mysql 4.1 app. I'm > > using PHP's DOM f

RE: [PHP] using DOM functions with embedded html / encoding

2006-03-21 Thread Weber Sites LTD
Not sure how to directly help but have a look at these code examples that Use createElement, maybe you can get the idea from that. http://www.weberdev.com/AdvancedSearch.php?example=createElement&searchtype= example&sort=submit_date+desc&search=&category=&date=&page=1&secondary=&Sear chIn=All+Cat

Re: [PHP] using DOM functions with embedded html / encoding

2006-03-21 Thread Anthony Ettinger
saveHTML();? instead of saveXML(); On 3/21/06, jonathan <[EMAIL PROTECTED]> wrote: > I'm interested in creating an xml doc from my php5/mysql 4.1 app. I'm > using PHP's DOM functions to create the xml file. > > Some of the text fields now have well-formed html embedded in them. > When I do a $dom