0

Can anyone explain why all HTML tags are working/rendering in my XML but italic ?
Also, you can't put classes in xml right, I tried that it it didn't seem to recognized any classes.

Sorry getting familiar with XML

Xtian
  • 3,535
  • 11
  • 55
  • 91
  • XML has no semantics per se. Whatever you're doing there with HTML tags is up to the application reading the XML to interpret. Care to share some code, mayhaps? – Joey Jun 11 '10 at 14:55
  • Please explain what you mean. XML is not a display language like HTML, so it doesn't have "italics". Please show the XML you're trying to use and explain how you use it and what exactly doesn't work. – John Saunders Jun 11 '10 at 14:55

1 Answers1

1

XML has a CDATA function to pass characters used in the language.

There is a nice explanation to it here: http://www.w3schools.com/xmL/xml_cdata.asp

Pez Cuckow
  • 14,048
  • 16
  • 80
  • 130
  • Ya, I read this earlier, but it doesn't really explain why Bold works but italic does not work? – Xtian Jun 11 '10 at 14:59
  • There is no 'italic" in xml - xml describes data, html describes display – KevinDTimm Jun 11 '10 at 15:02
  • Then why does bold work then? This is info inside xml tag, I'm not using to describe data – Xtian Jun 11 '10 at 15:10
  • I don't understand why you want to be able to do this anyway, what is the Xml interpreting? – Pez Cuckow Jun 11 '10 at 15:19
  • Sorry, should have explained. I have a paragraph the XML is spitting out, but inside the paragraph the client would like to have certain words bold or italicized. So I am putting in html tags in the xml. They all work but Italic? – Xtian Jun 11 '10 at 15:20
  • And what is the client interpreting the XML with? – Pez Cuckow Jun 11 '10 at 15:40