<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C3FCBE.537A84F0">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="time"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="date"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:553679495 -2147483648 8 0 66047 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><span
style='mso-spacerun:yes'> </span><span
class=GramE>elt3.addContent(</span>new CDATA(<span class=SpellE>elt.getText</span>()));<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>This works, but I got depreciation a warning
and I only get the text portions of the element.<span
style='mso-spacerun:yes'> </span>How can I get the textual representation
of everything including tags like <<span class=SpellE>br</span>/>?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> jdom-interest-admin@jdom.org
[mailto:jdom-interest-admin@jdom.org] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Jason Long<br>
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><st1:date
Month="2" Day="26" Year="2004"><font size=2 face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma'>Thursday, February 26, 2004</span></font></st1:date><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><st1:time
Hour="22" Minute="50"><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>10:50 PM</span></font></st1:time><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>To:</span></b> JDOM<br>
<b><span style='font-weight:bold'>Subject:</span></b> [jdom-interest] (no
subject)</span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'>I am not sure I follow.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'>My code is as follows:<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'>Element elt0 = new
Element("story");<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'>Element elt1 = (Element)
xpath.selectSingleNode(doc</span></font><st1:PersonName><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>JDOM</span></font></st1:PersonName><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);
elt0.addContent(elt1.clone());<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'>This is currently serialized as:<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><story><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><span style='mso-spacerun:yes'>
</span><text><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><span
style='mso-spacerun:yes'> </span>Test test
test <br/><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><span
style='mso-spacerun:yes'> </span>Test test
test <br/><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><span
style='mso-spacerun:yes'> </span>Test test
test <br/><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><span style='mso-spacerun:yes'>
</span></text><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'></story><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'>I need it to be as follows:<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><![CDATA[".<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'>> Use XMLOutputter.outputElementContent to
output the element's content.<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'>> Output "]]>".<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'>This assumes you element doesn't contain any
CDATA descendants, anything else that might produce a "]]>"
<story><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><span style='mso-spacerun:yes'>
</span><text><![CDATA[<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><span
style='mso-spacerun:yes'> </span>Test test
test <br/><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><span
style='mso-spacerun:yes'> </span>Test test
test <br/><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><span
style='mso-spacerun:yes'> </span>Test test
test <br/><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><span
style='mso-spacerun:yes'>
</span>]]><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><span style='mso-spacerun:yes'>
</span></text><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'></story><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in;mso-layout-grid-align:none;
text-autospace:none'><font size=2 face="Courier New"><span style='font-size:
10.0pt;font-family:"Courier New"'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial;mso-no-proof:yes'>Jason Long - CEO
and Chief Software Engineer<br>
Supernova Software - supernovasoftware.com<br>
BS Physics, MS Chemical Engineering </span></font><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>