Re: [PHP] PHP, XML and HTML-Tags
On Tue, Aug 13, 2002 at 03:22:03PM +0200, Bernard wrote: I am using successfully the PHP XML-parser. But I have one problem. I like to include html tags into the texts and I don't want them to be interpreted by the parser. Have you tried putting the XML in CDATA sections? That's really where such things should be. http://www.w3.org/TR/2000/REC-xml-20001006#sec-cdata-sect --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML to HTML?!
On Wed, 1 May 2002, Fredrik Arild Takle wrote: Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 1 May 2002, Fredrik Arild Takle wrote: Wrap into a output buffer. ob_start, ob_get_contents This was neat. I did: ob_start(); $myvar = ob_get_contents(); But it still outputs the page, can I disable that? Read the output buffering section of the manual. Look for the word flush. Correct me if I am wrong, but isn't flush() a function to output the buffer? What I want to do is to prevent xml_parse() to output the html. Hints? Well, I don't think you actually did what I suggested, but what the hell, here's a fish. http://php.net/ob_end_clean The default behavior is to flush the output buffer to the server. Using the above-referenced function instead will discard it, which is the behavior you want. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML to HTML?!
Wrap into a output buffer. ob_start, ob_get_contents This was neat. I did: ob_start(); $myvar = ob_get_contents(); But it still outputs the page, can I disable that? Regards Fredrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML to HTML?!
On Wed, 1 May 2002, Fredrik Arild Takle wrote: Wrap into a output buffer. ob_start, ob_get_contents This was neat. I did: ob_start(); $myvar = ob_get_contents(); But it still outputs the page, can I disable that? Read the output buffering section of the manual. Look for the word flush. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML to HTML?!
Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Wed, 1 May 2002, Fredrik Arild Takle wrote: Wrap into a output buffer. ob_start, ob_get_contents This was neat. I did: ob_start(); $myvar = ob_get_contents(); But it still outputs the page, can I disable that? Read the output buffering section of the manual. Look for the word flush. Correct me if I am wrong, but isn't flush() a function to output the buffer? What I want to do is to prevent xml_parse() to output the html. Hints? Best Regards Fredrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XML to HTML?!
Hi, this might be a silly question, but I really haven't used XML alot with PHP. I've parsed some XML, when I do xml_parse it outputs the html-codes. I want to make a variable out of it, so I can write it to a file. I've tried $output = xml_parse(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML to HTML?!
»Fredrik Arild Takle« sagte am 2002-04-30 um 18:48:37 +0200 : I've parsed some XML, when I do xml_parse it outputs the html-codes. Wrap into a output buffer. ob_start, ob_get_contents Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.iso-top.de |Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 6 days 12 hours 49 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php