[PHP] test

2004-11-26 Thread franco bevilacqua
éàélàél
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] DOMXML html_dump_mem question

2004-10-22 Thread franco bevilacqua
 Hello,
I have a question regarding the html_dump_mem function. I build an xml 
tree with HTML tags. When I dump it, I expect that my brother interpret 
HTML tag procduced by the dump. But the dump produce only a text with my 
html tag. Does someone knows how to do HTML interpretation with using 
DOMXML print

The following example explains exactly what whant to do.
(Inspired from html_dump_mem example )
?php
// Creates the document
$doc = domxml_new_doc(1.0);
$root = $doc-create_element(html);
$root = $doc-append_child($root);
$body = $doc-create_element(body);
$body = $root-append_child($head);
$h1 = $doc-create_element(h1);
$h1 = $head-append_child($h1);
$text = $doc-create_text_node(This is the header1);
$text = $title-append_child($text);
echo $doc-html_dump_mem();
?
The following dump is produced:
htmlbodyh1This is the title/h1/body/html
But I expect the following result:
This is the title : formated as HTML header1
Thanks for your help.
Best regards
Franco
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] DOMXML html_dump_mem question

2004-10-22 Thread franco bevilacqua
Christian Stocker wrote:
On Fri, 22 Oct 2004 09:07:46 +0200, franco bevilacqua
[EMAIL PROTECTED] wrote:
 Hello,
I have a question regarding the html_dump_mem function. I build an xml
tree with HTML tags. When I dump it, I expect that my brother interpret
HTML tag procduced by the dump. But the dump produce only a text with my
html tag. Does someone knows how to do HTML interpretation with using
DOMXML print
The following example explains exactly what whant to do.
(Inspired from html_dump_mem example )

I see nothing wrong with the output, what exactly did you expect?
I expect to have the text This is the title printed as H1 by the 
brother, ( without the tags around the text ). I want that the brother 
interpret the dumped text as html and not as text. Do you have an idea 
to do that ?
Thanks
chregu
?php
// Creates the document
$doc = domxml_new_doc(1.0);
$root = $doc-create_element(html);
$root = $doc-append_child($root);
$body = $doc-create_element(body);
$body = $root-append_child($head);
$h1 = $doc-create_element(h1);
$h1 = $head-append_child($h1);
$text = $doc-create_text_node(This is the header1);
$text = $title-append_child($text);
echo $doc-html_dump_mem();
?
The following dump is produced:
htmlbodyh1This is the title/h1/body/html
But I expect the following result:
This is the title : formated as HTML header1
Thanks for your help.
Best regards
Franco
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] DOMXML html_dump_mem question

2004-10-22 Thread franco bevilacqua
Christian Stocker wrote:
 On Fri, 22 Oct 2004 09:07:46 +0200, franco bevilacqua
 [EMAIL PROTECTED] wrote:

  Hello,
 I have a question regarding the html_dump_mem function. I build an xml
 tree with HTML tags. When I dump it, I expect that my brother interpret
 HTML tag procduced by the dump. But the dump produce only a text with my
 html tag. Does someone knows how to do HTML interpretation with using
 DOMXML print

 The following example explains exactly what whant to do.
 (Inspired from html_dump_mem example )



 I see nothing wrong with the output, what exactly did you expect?
I expect to have the text This is the title printed as H1 by the 
brother, ( without the tags around the text ). I want that the brother 
interpret the dumped text as html and not as text. Do you have an idea 
to do that ?
Thanks


 chregu

 ?php

 // Creates the document
 $doc = domxml_new_doc(1.0);

 $root = $doc-create_element(html);
 $root = $doc-append_child($root);

 $body = $doc-create_element(body);
 $body = $root-append_child($head);

 $h1 = $doc-create_element(h1);
 $h1 = $head-append_child($h1);

 $text = $doc-create_text_node(This is the header1);
 $text = $title-append_child($text);

 echo $doc-html_dump_mem();

 ?
 The following dump is produced:

 htmlbodyh1This is the title/h1/body/html

 But I expect the following result:

 This is the title : formated as HTML header1

 Thanks for your help.

 Best regards
 Franco
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] DOMXML html_dump_mem question

2004-10-22 Thread franco bevilacqua
Christian Stocker wrote:
On Fri, 22 Oct 2004 10:44:48 +0200, franco bevilacqua
[EMAIL PROTECTED] wrote:
Christian Stocker wrote:
On Fri, 22 Oct 2004 09:07:46 +0200, franco bevilacqua
[EMAIL PROTECTED] wrote:

Hello,
I have a question regarding the html_dump_mem function. I build an xml
tree with HTML tags. When I dump it, I expect that my brother interpret
HTML tag procduced by the dump. But the dump produce only a text with my
html tag. Does someone knows how to do HTML interpretation with using
DOMXML print
The following example explains exactly what whant to do.
(Inspired from html_dump_mem example )

I see nothing wrong with the output, what exactly did you expect?
I expect to have the text This is the title printed as H1 by the
brother, ( without the tags around the text ). I want that the brother
interpret the dumped text as html and not as text. Do you have an idea
to do that ?

Aaah, brother == printer ;)
Sorry for my english but print in this context means displayed by the 
brother...
How can I do the XML DOM tree printing ( ie displaying in brother ) as 
an HTML page. One solution should consist to save the XML DOM tree in a 
file, and then load it into the browser, but I think that is too heavy, 
do you have an other idea ?
Thanks
No, that's not possible. PHP doesn't have a built in HTML renderer ...
chregu

Thanks

chregu

?php
// Creates the document
$doc = domxml_new_doc(1.0);
$root = $doc-create_element(html);
$root = $doc-append_child($root);
$body = $doc-create_element(body);
$body = $root-append_child($head);
$h1 = $doc-create_element(h1);
$h1 = $head-append_child($h1);
$text = $doc-create_text_node(This is the header1);
$text = $title-append_child($text);
echo $doc-html_dump_mem();
?
The following dump is produced:
htmlbodyh1This is the title/h1/body/html
But I expect the following result:
This is the title : formated as HTML header1
Thanks for your help.
Best regards
Franco
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php