Jump to content

CSS and XML

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
16 replies to this topic

#1
nlbrt

nlbrt

    Newbie

  • Members
  • Pip
  • 3 posts
Hi All,

forgive me if this is a silly question, but i'm not too sure how to do this without reading through a whole XML tutorial

I have a site (very small one) that is in html and uses CSS. I need to convert this site to XML (don't ask why). Now, could I just slap the CSS in the XML page as is or would it need to be different?

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
It really depends on what you're using it for. What's the purpose of the XML file?
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
I'm not sure if just using the CSS in your XML file would work.

What's the XML file for?

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
I suppose you could always use individual semantic tags for each style inside the main <style> tag.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#5
Guest_Kaabi_*

Guest_Kaabi_*
  • Guests
I am also curious as to why you need to make an XML page. What can you do with it that you can't do with regular HTML and CSS?

#6
chili5

chili5

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 7,247 posts
Yeah that was what I was wondering.

What is the XML file? Couldn't you just use an HTML file with CSS?

#7
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Maybe it's for a generic file that transfers data or something, but I can't see any reason to convert to XML. Besides, XML is a means of transferring data, not displaying pages.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#8
antoniyo

antoniyo

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts

chili5 said:

Yeah that was what I was wondering.

What is the XML file? Couldn't you just use an HTML file with CSS?
Yeah sure....
i am not sure but file will not work.

#9
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
as XML is not for web presenting, so combining XML and CSS makes no sense to me.

#10
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Exactly; XML is for data.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#11
antoniyo

antoniyo

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
Actually css can't convert to Xml but xml can convert to css.

#12
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
XML can convert to CSS?

What is that supposed to mean? XML is a way of storing data, CSS is a way of adding colours and locations to webpage elements. There is no similarity, you cannot convert between them.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums