HTML to XML

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
harish2kr
Forum Newbie
Posts: 3
Joined: Wed Jan 07, 2009 10:48 pm

HTML to XML

Post by harish2kr »

Hi,

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

Thanks in advance

Hari
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: HTML to XML

Post by php_east »

8O
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: HTML to XML

Post by susrisha »

harish2kr
Forum Newbie
Posts: 3
Joined: Wed Jan 07, 2009 10:48 pm

Re: HTML to XML

Post 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
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: HTML to XML

Post 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.
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: HTML to XML

Post 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.
Post Reply