HTML [or similar] read off XML

lieb39

Apple lover, PC User
Joined
Nov 27, 2002
Messages
526
#1
Hello everyone,

I have finally found out how I want to do my website. I have a little experience so this is how I plan to have my website done. Basically, I have two HTML (or whatever type, as long as it can do what I want, and on a apache server with PHP.. no ASP) files that shall read off a XML file. Basically, I want the XML file to look like this (Note the order it's in)
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<news>
    <N01>
      <date>Jan.1.2004.</date>
      <text>Happy new year.. blah blah</text>
    </N01>
    <N02>
      <date>Jan.18.2004.</date>
      <text>Added some section... blah blah</text>
    </N02>
    <N03>
      <date>Jan.21.2004.</date>
      <text>Meh, no news today. sorry mate...</text>
    </N03>
</news>
And it shall be formatted into a website like this [Note the Bold, Font size, and order of the news] [the date should be -1 size font.. didn't show up properly]

Jan.21.2004
Meh, no news today. sorry mate...

Jan.18.2004
Added some section... blah blah

Jan.1.2004
Happy new year.. blah blah
and so on. The first HTML website should do the exalt same, with white background and black text. Font doesn't need to be defined. Second one should read off the same website, same size and bold with the font, only background text should be black, font being white.


Basically, i need help with thise code. I have the XML done, need to get the HTML or similar done...


Thanks,

lieb39
 

lieb39

Apple lover, PC User
Joined
Nov 27, 2002
Messages
526
#3
Hmm well if I remember a while back I got a system up and running, basically a html (or xhtml.. whatever) read off a xml file, and filled out a table, if the table boarder is '0' than it looks like normal text. only thing would be organizing it so that the recent news is at the top.. More help would be nice, i'll keep you guys posted.

-lieb39
 

lieb39

Apple lover, PC User
Joined
Nov 27, 2002
Messages
526
#4
Ok, I just need a little bit of help. I can't remember what I need to put in the table header to make sure it uses the XML file, and what to put in the table cells to make it grab specfic info from the xml file..

[/end mumbling..]

-lieb39
 

Members online

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
62,011
Messages
673,481
Members
89,036
Latest member
jt707981