<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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@01C16DE3.67929CF0">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <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]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;
        mso-font-alt:"Courier New";
        mso-font-charset:0;
        mso-generic-font-family:modern;
        mso-font-format:other;
        mso-font-pitch:fixed;
        mso-font-signature:3 0 0 0 1 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        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-compose;
        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.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        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:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple style='tab-interval:36.0pt'>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hello,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>I
am currently converting a web service from using xerces 1.2 to jdom (beta 7).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Additionally, I have moved the project from JBuilder5 to IBM
WebSphere Application Developer (Beta Version).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Might sound daft but WSAD is excellent at creating and
testing web services.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Unfortunately<span class=GramE>,<span
style='mso-spacerun:yes'>&nbsp; </span>all</span> DOM output (i.e. Xerces and
JDom) is now producing, e.g.:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&amp;lt; CUSTOMER &amp;gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><span class=GramE><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>instead</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> of<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&lt;CUSTOMER&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Web browsers love it.<span style='mso-spacerun:yes'>&nbsp;
</span>My client app doesn't!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have tried different encodings to no avail.<span
style='mso-spacerun:yes'>&nbsp; </span><span class=GramE>Any Ideas?</span><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The document is built purely from scratch within the class
(e.g. not parsed in).<span style='mso-spacerun:yes'>&nbsp; </span>The outputter
fragment is as follows:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'><span
style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></font><span
class=GramE><font size=2 color="#7f0055" face=Courier><span style='font-size:
10.0pt;font-family:Courier;mso-bidi-font-family:Courier;color:#7F0055;
background:white;mso-highlight:white'>private</span></font></span><font size=2
color="#7f0055" face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:#7F0055;background:white;mso-highlight:white'>
</span></font><font size=2 color=black face=Courier><span style='font-size:
10.0pt;font-family:Courier;mso-bidi-font-family:Courier;color:black;background:
white;mso-highlight:white'>String docToString(Document doc) {</span></font><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'><span
style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>StringWriter
stringOut = </span></font><font size=2 color="#7f0055" face=Courier><span
style='font-size:10.0pt;font-family:Courier;mso-bidi-font-family:Courier;
color:#7F0055;background:white;mso-highlight:white'>new </span></font><span
class=GramE><font size=2 color=black face=Courier><span style='font-size:10.0pt;
font-family:Courier;mso-bidi-font-family:Courier;color:black;background:white;
mso-highlight:white'>StringWriter(</span></font></span><font size=2
color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'>);</span></font><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'><span
style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>XMLOutputter
outputter = </span></font><font size=2 color="#7f0055" face=Courier><span
style='font-size:10.0pt;font-family:Courier;mso-bidi-font-family:Courier;
color:#7F0055;background:white;mso-highlight:white'>new </span></font><span
class=GramE><font size=2 color=black face=Courier><span style='font-size:10.0pt;
font-family:Courier;mso-bidi-font-family:Courier;color:black;background:white;
mso-highlight:white'>XMLOutputter(</span></font></span><font size=2
color="#2a00ff" face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:#2A00FF;background:white;mso-highlight:white'>&quot;
&quot;</span></font><font size=2 color=black face=Courier><span
style='font-size:10.0pt;font-family:Courier;mso-bidi-font-family:Courier;
color:black;background:white;mso-highlight:white'>, </span></font><font size=2
color="#7f0055" face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:#7F0055;background:white;mso-highlight:white'>true</span></font><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'>);</span></font><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'><span
style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=GramE>outputter.setEncoding(</span></span></font><font size=2
color="#2a00ff" face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:#2A00FF;background:white;mso-highlight:white'>&quot;ISO-8859-1&quot;</span></font><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'>);</span></font><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black'> //tried without this, i.e. UTF-8</span></font><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color="#3f7f5f" face=Courier><span style='font-size:10.0pt;font-family:
Courier;mso-bidi-font-family:Courier;color:#3F7F5F;background:white;mso-highlight:
white'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></font><span
class=GramE><font size=2 color=black face=Courier><span style='font-size:10.0pt;
font-family:Courier;mso-bidi-font-family:Courier;color:black;background:white;
mso-highlight:white'>outputter.setOmitDeclaration(</span></font></span><font
size=2 color="#7f0055" face=Courier><span style='font-size:10.0pt;font-family:
Courier;mso-bidi-font-family:Courier;color:#7F0055;background:white;mso-highlight:
white'>true</span></font><font size=2 color=black face=Courier><span
style='font-size:10.0pt;font-family:Courier;mso-bidi-font-family:Courier;
color:black;background:white;mso-highlight:white'>);</span></font><font size=2
face=Courier><span style='font-size:10.0pt;font-family:Courier;mso-bidi-font-family:
Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'><span
style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp; </span></span></font><span
class=GramE><font size=2 color="#7f0055" face=Courier><span style='font-size:
10.0pt;font-family:Courier;mso-bidi-font-family:Courier;color:#7F0055;
background:white;mso-highlight:white'>try</span></font></span><font size=2
color="#7f0055" face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:#7F0055;background:white;mso-highlight:white'>
</span></font><font size=2 color=black face=Courier><span style='font-size:
10.0pt;font-family:Courier;mso-bidi-font-family:Courier;color:black;background:
white;mso-highlight:white'>{</span></font><font size=2 face=Courier><span
style='font-size:10.0pt;font-family:Courier;mso-bidi-font-family:Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'><span
style='mso-spacerun:yes'>&nbsp;</span><span style='mso-tab-count:3'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=GramE>outputter.output(</span>doc, stringOut);<span
style='mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></font><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'><span
style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}
</span></font><font size=2 color="#7f0055" face=Courier><span style='font-size:
10.0pt;font-family:Courier;mso-bidi-font-family:Courier;color:#7F0055;
background:white;mso-highlight:white'>catch </span></font><font size=2
color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'>(Exception
e) {</span></font><font size=2 face=Courier><span style='font-size:10.0pt;
font-family:Courier;mso-bidi-font-family:Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'><span
style='mso-tab-count:3'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=GramE>e.printStackTrace(</span>);</span></font><font size=2 face=Courier><span
style='font-size:10.0pt;font-family:Courier;mso-bidi-font-family:Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'><span
style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span></font><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'><span
style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></font><span
class=GramE><font size=2 color="#7f0055" face=Courier><span style='font-size:
10.0pt;font-family:Courier;mso-bidi-font-family:Courier;color:#7F0055;
background:white;mso-highlight:white'>return</span></font></span><font size=2
color="#7f0055" face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:#7F0055;background:white;mso-highlight:white'>
</span></font><font size=2 color=black face=Courier><span style='font-size:
10.0pt;font-family:Courier;mso-bidi-font-family:Courier;color:black;background:
white;mso-highlight:white'>stringOut.toString();</span></font><font size=2
face=Courier><span style='font-size:10.0pt;font-family:Courier;mso-bidi-font-family:
Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=black face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black;background:white;mso-highlight:white'><span
style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span></font><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Regards,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Steve.<o:p></o:p></span></font></p>

</div>

</body>

</html>