<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am using jdom to read and analyze words
pulled from xml tagged paragraphs. With normal text, every thing is ok, but
trips up on text like below with special characters. Is there a special way
I need to handle </FONT></DIV>
<DIV><FONT face=Arial size=2>these characters?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks Brian</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><BodyText kxid="xml-5.64">We declare a
default namespace using the xmlns attribute with a URI as its value (line 6).
Once this default namespace is in place, child elements that are part of this
namespace do not need a namespace prefix. Element file (line 9) is in the
namespace corresponding to the URI urn:deitel:textInfo. Compare this to Fig.
5.8, where we prefixed the file and description elements with the namespace
prefix text (lines 9-11). Fig. 5.9 Using default
namespaces.<BR> 1 &lt;?xml version = "1.0"?&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 2 </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 3 &lt;!-- Fig. 5.9 :
defaultnamespace.xml --&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 4 &lt;!-- Using Default
Namespaces --&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 5 </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 6 &lt;directory xmlns =
"urn:deitel:textInfo"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2> 7
xmlns:image = "urn:deitel:imageInfo"&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 8 </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 9 &lt;file filename =
"book.xml"&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 10
&lt;description&gt;A book list&lt;/description&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 11
&lt;/file&gt;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> 12 </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> 13 &lt;image:file
filename = "funny.jpg"&gt;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> 14
&lt;image:description&gt;A funny
picture&lt;/image:description&gt;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> 15
&lt;image:size width = "200" height = "100"/&gt;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> 16
&lt;/image:file&gt;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> 17 </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2> 18 &lt;/directory&gt;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> </BodyText></FONT></DIV></BODY></HTML>