473,387 Members | 1,579 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Inserting XML into a webpage.

Hi, and thanks in advance for helping me out.

I have an XML file, with an XSL style sheet attached, and I want to use
this XML file as a news feed on my personal site, instead of using PHP.

Is there any way to insert this XML file into the body of my site
without using iframes or using DOM to parse it? I was trying to use
DOM to load it and display it as is, but being a noob at this, I
totally screwed up.

Maybe load it and appendChild?

If GooglePages allows hotlinking, here is a link to the file (i
disallowed hotlinking on my own site, so i had to upload it here):
http://james.qian.googlepages.com/news.xml

May 10 '06 #1
4 2375
ja********@gmail.com wrote:
I have an XML file, with an XSL style sheet attached, and I want to use
this XML file as a news feed on my personal site, instead of using PHP.

Is there any way to insert this XML file into the body of my site
without using iframes or using DOM to parse it?


Most server side languages can do this, those available to you depend on
your webserver.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
May 11 '06 #2
ja********@gmail.com wrote:
I have an XML file, with an XSL style sheet attached, and I want to use
this XML file as a news feed on my personal site, instead of using PHP.


Do it server-side with PHP.

You could do it client-side instead. But this is no easier to code, and
it's getting to be browser-dependent. Server-side is simpler to deploy.
If you really want to do this client-side though, look into AJAX.

May 11 '06 #3
ja********@gmail.com wrote:
Maybe load it and appendChild?


Load, importNode (may be needed to get the new data into objects
compatable with the ones you want to add it to), and append or insert as
appropriate.
May 11 '06 #4
Thanks, Joe, I'll try that.

May 12 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: patje | last post by:
I installed phorum (http://phorum.org) on my local machine and everything works fine with http://localhost. But I want to integrate phorum on a specific webpage on the web. Therefor some things...
5
by: Pugi! | last post by:
Hi, I would like to upload office-document (doc, xls, ...) using a form to a website (apache, php, mysql) in a specific directory and if possible insert it into a table (MySQL-db). Is this...
5
by: Mechphisto | last post by:
I'm using a textarea to insert some notes into a database. It's inserting the complete result into the mySQL table including the linebreaks...and not as a visible symbol but an actual linebreak. If...
5
by: Iain Porter | last post by:
Hi, I'm trying to store large strings to a database, so am using the text field type (LongText). I have used this before when storing the html of a webpage, and was able to store more than 255...
5
by: Jonboy | last post by:
Hi all, I have a .swf file...and thats all i have. A relic. I am wondering how I can make use of it in a webpage? I don't have the associated html to go with it. Also in thehtml is it...
0
by: Pat Allan | last post by:
I've spent half a day on this with no success, so I'm hoping someone can point out what I'm doing wrong. I have an ASP.NET Server-side component that I've created, and as part of its Render...
4
by: comp_guy | last post by:
hey guys, can anyone see where im going wrong in my code below? i am making a registration form on a webpage before using php to send the input data into a mySQL database. first off is the code for...
1
by: kingoftheimpossible | last post by:
hey, im new to site building, i was wondering if i could get a forum to copy and paste into my webpage so that people can leave comments for me. were can i get this in html format as i can't do it...
1
by: Emma Middlebrook | last post by:
Hi, I've implemented an AJAX update panel on one of my ASP.NET web pages. I generate and add controls to it dynamically. What I would like to do is tell it to start a new line before adding the...
2
by: AlexanderDeLarge | last post by:
Hi! I got a problem that's driving me crazy and I'm desperately in need of help. I'll explain my scenario: I'm doing a database driven site for a band, I got these tables for their discography...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.