Label with CONTENT_XHTML problem

Hi,

I have a table that one of its columns’ type is a Label with CONTENT_XHTML content type. When I want to show a value like this;

<?></?>

the label shows nothing. As I know of XHTML format, it should not parse the value(because there is nothing like <?> in XHTML as a tag) and show the <?></?> text like it is a simple, unparsable text string.

What causes this?

Thanks in advance,

Aykut

That is incorrect; any HTML tags that are not known are ignored. Anything inside <> is considered markup, not content.

When you want to show this string in your label, you need to encode the brackets like &lt;?&gt;&lt;/?&gt;

@Thomas Mattsson, I thought the <?> format as incorrect just because when I save a file as xhtml with the content “<?>” it gives XML parsing error. The exapmle XHTML code is:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<body>
<?></?>
</body>
</html>

I am doing something wrong but what?

@Michael Vogt, thanks by the way, i will try that.

Regards,

Aykut

Browsers are much more reluctant than XML-Parsers are. If they don’t know a tag, they ignore it.