View Full Version : how do I use " inside a node attribute

02-06-2008, 07:06 PM
Got some problems with " and < > in xml, It didnt work to just write \" or \< like in php, so is there a way to solve this? :confused:

02-08-2008, 06:43 AM
If you are wanting to display those characters on your page then you need to use the following codes
" is &quot;
< is &lt;
> is &gt;
Hope this helps.

02-08-2008, 07:44 AM
If you use XML with no DTD, then these five character entities are assumed to be predeclared, and you can use them without declaring them:

&lt; - The less-than character

&amp; - The ampersand character

&gt; - The greater-than character

&quot; - The double-quote character

&apos; - The apostrophe or single-quote character

If you are using a DTD then you must declare all the character entities you need to use (if any), including any of the five above that you plan on using (they cease to be predeclared if you use a DTD). If you are using a Schema, you must use the numeric form for all except the five above because Schemas have no way to make character entity declarations.