Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ XML to HTML

Posted by: helmesy Jan 31 2009, 05:06 AM

Hi guys and girls

I'm not a very experienced website builder. I use a "do it yourself" page which is pretty easy to use.

My problem is a client has sent me a feed link in XML.

I can't work out how to get my HTML editor to read it.

Any help would be greatly appreciated.

Posted by: pandy Jan 31 2009, 05:17 AM

What editor do you use? Any text editor is able to read an XML file and all other plain text files.

Posted by: helmesy Jan 31 2009, 05:42 AM

QUOTE(pandy @ Jan 31 2009, 05:17 AM) *

What editor do you use? Any text editor is able to read an XML file and all other plain text files.


It's a do it yourself site provided by our hosting service.

It appears to only be able to handle HTML.

Could this be right?

Thanks for the response BTW

Posted by: Frederiek Jan 31 2009, 06:06 AM

What are you supposed to do with the XML? Is it to put an RSS feed on the site?

Posted by: pandy Jan 31 2009, 06:51 AM

QUOTE(helmesy @ Jan 31 2009, 11:42 AM) *

Could this be right?


Yes. As Frederiek asked, what do you intend to do with it?

Posted by: Brian Chandler Jan 31 2009, 07:06 AM

QUOTE(helmesy @ Jan 31 2009, 07:42 PM) *

QUOTE(pandy @ Jan 31 2009, 05:17 AM) *

What editor do you use? Any text editor is able to read an XML file and all other plain text files.


It's a do it yourself site provided by our hosting service.

It appears to only be able to handle HTML.

Could this be right?

Thanks for the response BTW


Seems like a bit of confusion here: any text editor can read an XML file, since it's just a "text file" format. But unless this is a once-off, and you just want to extract the text manually, that isn't a very good start.

But you didn't answer Pandy's question anyway... _what_ is a "do-it-yourself site"?? What does it mean for a "site" to only be able to "handle" html?

Probably you want to write a script to read (parse) the XML feed, and use it to generate the desired HTML. Should be fairly simple, but the PHP manual offers a baffling number of different systems for handling XML, so it needs a bit of work...


Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)