Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

CSS and XML

CSS xml

  • Please log in to reply
16 replies to this topic

#1 nlbrt

nlbrt

    CC Lurker

  • Just Joined
  • Pip
  • 3 posts

Posted 27 April 2008 - 09:49 AM

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?
  • 0

#2 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 27 April 2008 - 09:51 AM

It really depends on what you're using it for. What's the purpose of the XML file?
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#3 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 27 April 2008 - 10:47 AM

I'm not sure if just using the CSS in your XML file would work.

What's the XML file for?
  • 0

#4 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 27 April 2008 - 11:34 AM

I suppose you could always use individual semantic tags for each style inside the main <style> tag.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#5 Guest_Kaabi_*

Guest_Kaabi_*
  • Guest

Posted 05 May 2008 - 04:37 PM

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?
  • 0

#6 chili5

chili5

    CC Mentor

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3038 posts
  • Programming Language:Java, C#, PHP, JavaScript, Ruby, Transact-SQL
  • Learning:C, Java, C++, C#, PHP, JavaScript, Ruby, Transact-SQL, Assembly, Scheme, Haskell, Others

Posted 06 May 2008 - 02:20 AM

Yeah that was what I was wondering.

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

#7 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 06 May 2008 - 03:50 AM

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.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#8 antoniyo

antoniyo

    CC Regular

  • Just Joined
  • PipPipPip
  • 49 posts

Posted 17 October 2008 - 02:29 AM

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

#9 Orjan

Orjan

    CC Mentor

  • Moderator
  • 2918 posts
  • Location:Karlstad, Sweden
  • Programming Language:C, Java, C++, C#, PHP, JavaScript, Pascal
  • Learning:Java, C#

Posted 20 October 2008 - 05:05 PM

as XML is not for web presenting, so combining XML and CSS makes no sense to me.
  • 0

#10 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 22 October 2008 - 03:15 AM

Exactly; XML is for data.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?

#11 antoniyo

antoniyo

    CC Regular

  • Just Joined
  • PipPipPip
  • 49 posts

Posted 30 October 2008 - 04:27 AM

Actually css can't convert to Xml but xml can convert to css.
  • 0

#12 Xav

Xav

    CC Mentor

  • VIP Member
  • PipPipPipPipPipPipPipPip
  • 8356 posts

Posted 30 October 2008 - 06:28 AM

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.
  • 0
If you enjoy reading this discussion and are thinking about commenting, why not click here to register and start participating in under a minute?





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download