Jump to content

Html In A Xml Element


ncg
 Share

Recommended Posts

Hi!I am converting a web page to xml with a xsl stylesheet.I would like to put html in xml elements and display it as it is.For example:

<some_element>	 <strong>HTML inside XML!</strong></some_element>

XPath parses the html tags as xml elements.Using value-of on some_element prints only the text (the direct children).I tried enclosing the html in CDATA, but the special characters get escaped (&lt...) and printed to the output.Any idea?Or should I just change stragegy?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...