In other words, can I do this..

<cd>
		<artist>Angella Christie</artist>
		<album>Hymn & I</album>
		<song>Blessed Assurance</song>
		<genre>Gospel Jazz</genre>
		<image>
		http://ecx.images-amazon.com/images/I/41TQV56BH0L._SL160_AA115_.jpg</image>
	</cd>

I'm asking because when I press "Get Schema" Dreamweaver gives me an "Expected entity name for reference(13,16). The "image" tag line is line 16.

Dani AI

Generated

As discovered, that Dreamweaver message means the XML parser hit an invalid entity reference. A URL inside an XML element is completely legal as character data, but XML treats certain characters (for example & and <) as markup. There are a few safe patterns to represent links in XML depending on whether you want plain text, an attribute, or embedded markup.

Three simple approaches:

<image>http://example.com/image.jpg</image>
<image src="http://example.com/image.jpg" />
<description><![CDATA[Click <a href="http://example.com/">here</a>]]></description>

Notes and cautions: CDATA prevents the XML parser from interpreting markup, but it does not turn the content into DOM nodes for consumers—clients must parse that HTML fragment if they need elements. CDATA also cannot contain the sequence ]]>. If the intention is to include real HTML elements inside an XML document, use a proper XHTML namespace or an XML linking mechanism (for formally modeled links). For authoritative details on entity escaping and CDATA usage see the W3C XML sections on predefined entities and CDATA sections: XML predefined entities and CDATA sections.

I solved my own problem by remembering Google after I posted. for everyone's reference, you can't use ampersands. you have to spell it out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.