The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> XML to HTML
helmesy
post Jan 31 2009, 05:06 AM
Post #1





Group: Members
Posts: 2
Joined: 31-January 09
Member No.: 7,686



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 31 2009, 05:17 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



What editor do you use? Any text editor is able to read an XML file and all other plain text files.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
helmesy
post Jan 31 2009, 05:42 AM
Post #3





Group: Members
Posts: 2
Joined: 31-January 09
Member No.: 7,686



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Jan 31 2009, 06:06 AM
Post #4


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



What are you supposed to do with the XML? Is it to put an RSS feed on the site?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 31 2009, 06:51 AM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



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

Could this be right?


Yes. As Frederiek asked, what do you intend to do with it?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Jan 31 2009, 07:06 AM
Post #6


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



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

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 23rd April 2024 - 08:30 AM