newbie question on elements..

JustSomeGuy

Usenet Archive
Joined
Jan 24, 2000
Messages
156
Reaction score
0
What are the rules when placing text between keys...
(If I may call them so.)

<BookTitle>1 < 2</BookTitle>

Must this be in single/double quotes..
 

Patrick TJ McPhee

Usenet Archive
Joined
Apr 2, 2000
Messages
269
Reaction score
0
% (If I may call them so.)
%
% <BookTitle>1 < 2</BookTitle>

This is not well-formed.

% Must this be in single/double quotes..

No. You can escape using a CDATA section

<BookTitle><![CDATA[1 < 2]]></BookTitle>

but it's more common to use the pre-defined entity references &lt;

<BookTitle>1 &lt; 2</BookTitle>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
548,208
Messages
3,104,799
Members
249,594
Latest member
henrywalsh

Latest Threads

Top