Page 1 of 1

HTML to XML

Posted: Mon Mar 09, 2009 11:18 pm
by harish2kr
Hi,

Is it possible to convert an html to xml using php. If possible please give an example

Thanks in advance

Hari

Re: HTML to XML

Posted: Mon Mar 09, 2009 11:39 pm
by php_east
8O

Re: HTML to XML

Posted: Mon Mar 09, 2009 11:40 pm
by susrisha

Re: HTML to XML

Posted: Tue Mar 10, 2009 1:30 am
by harish2kr
The main idea is to convet an html file to xml for flex display. I have file called display.php in that i am displaying a content using table, i need to make the content displayed in the table as an xml format

Re: HTML to XML

Posted: Tue Mar 10, 2009 1:55 am
by susrisha
You may have to create your own format for xml using simple_xml class of php.
The access to the same through the flash can be done through XML object.

Re: HTML to XML

Posted: Wed Mar 11, 2009 7:44 am
by php_east
harish2kr wrote:The main idea is to convet an html file to xml for flex display. I have file called display.php in that i am displaying a content using table, i need to make the content displayed in the table as an xml format
am not familiar about flex, but isn't htm already an xml in a very close sense ? which is why i am surprised you want html->xml converter. it looks like double work to me. just curious.