want to add xlm to site

P

Paul Wheeler

i want to add some info in xlm to my web site. what does the code for the
xml have to look like and what do i need to add to my html
 
D

David Dorward

Paul said:
i want to add some info in xlm to my web site. what does the code for the
xml have to look like and what do i need to add to my html

It sounds like you don't know what XML is, it certainly can't just be "added
to HTML" (Well, not in any standard, sane, or well supported way). Why do
you want to use it?
 
T

Toby Inkster

Paul said:
i want to add some info in xlm to my web site. what does the code for the
xml have to look like and what do i need to add to my html

<XMP>... Put your XML here ...</XMP>
 
T

Travis Newbury

Paul Wheeler said:
i want to add some info in xlm to my web site. what does the
code for the xml have to look like and what do i need to add to
my html

Sounds like someone learned a new term, xml.

What are you really trying to do?
 
P

Paul Wheeler

Well i am trying to put in data that can be updated by just sending 1 file
instead of retyping my index.html file. i have seen a unoffical way of
linking a xml doc to a html file using the code <xml id="name"
src="name.xml"> it is looks like what i want but i can not get it to load on
to the page i am trying to add it too. can any one help.. and yes i am
teaching my self.
 
J

Jim Higson

Paul said:
Well i am trying to put in data that can be updated by just sending 1 file
instead of retyping my index.html file. i have seen a unoffical way of
linking a xml doc to a html file using the code <xml id="name"
src="name.xml"> it is looks like what i want but i can not get it to load
on to the page i am trying to add it too. can any one help.. and yes i am
teaching my self.

If retyping a HTML file is the problem then scripting is probably the
answer. Languages such as PHP specialise in generating the HTML for you.

You can convert XML files to XHTML (or any other XML-derived format) using
XSL, but it can be quite difficult to learn. PHP is probably easier and
usually comes with an XML parser which you can use to read your XML file
and output HTML. This (X)HTML is then sent to the browser.

Generally, XML other than XHTML shouldn't be sent to the browser unless
you're coding an AJAX app (if you don't know you are you're not). XML
itself has no rules how the browser should display it.

There are many good books available on PHP, and many websites with
introductions. This is probably where you should go next.

Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top