javascript - how to add greater than,less than to a tag in xml file? as a sample <tag>&lt;mark&gt;</tag> -


when i'm trying wrote in title, loading of xml failed.

without "<",">" file loaded html javascript great without problems.

i saw how w3c told that, in case in title failed.

--1-- can use --2-- 

without problem , xml file loaded fine javascript html.

sample xml file:

--3-- looking in browser: --4- 

what problem?

all code parts in link http://pastebin.com/kab8ifwz in parts 1/2/3/4

try enclosing part of xml containing tags cdata. e.g.

<![cdata[<b>this part contains tags</b>]]> 

or:

<![cdata[&lt;b&gt;this part contains tags&lt;/b&gt;]]> 

hope helps!


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -