individualtermite
individualtermite

Reputation: 3765

Output HTML in XML Attribute

I am attempting to display HTML information in an attribute of a XML document. For example, I somehow want to accomplish the following:

Attributes:
 id = "id"
 HTML_Elements = {
 <a href="./link.html">link</a>
 }

 (<something id='id' HTML_Elements='code'></something>)

I am wondering if there is some way to accomplish displaying the code directly inside of the attribute without having to link to it on another page.

Thanks for any help!

Upvotes: 0

Views: 406

Answers (1)

Gordon
Gordon

Reputation: 317119

XML attributes may not contain HTML.

See Chapter 3.3.3 Attribute Value Normalization in the XML 1.0 Specs

Upvotes: 1

Related Questions