<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:navy;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=navy>

<div class=Section1>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Hello,<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>I'm fairly new to JDOM and
am having an issue with namespaces. I am reading an xml file, making a small
change and then writing it back out. What's happening is that the &quot;xmi:&quot;
prefix is being dropped from the attributes. Not sure if it&#8217;s because the
xml is not properly formed to begin with, but it&#8217;s not my file, rather
something I must modify.<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Here's a sample of the input
file:<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&lt;?xml
version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&lt;xmi:XMI
xmi:version=&quot;2.0&quot; xmlns:xmi=&quot;http://www.omg.org/XMI&quot;
xmlns:resources.j2c=&quot;http://www.ibm.com/websphere/appserver/schemas/5.0/resources.j2c.xmi&quot;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;
&lt;resources.jms:JMSProvider xmi:id=&quot;builtin_jmsprovider&quot; name=&quot;WebSphere
JMS Provider&quot; description=&quot;Built-in WebSphere JMS Provider&quot;
externalInitialContextFactory=&quot;&quot; externalProviderURL=&quot;&quot;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;factories
xmi:type=&quot;resources.jms.internalmessaging:WASQueue&quot;
xmi:id=&quot;WASQueue_1112308680518&quot; name=&quot;CancelInventoryQ&quot; jndiName=&quot;jms/mq/ecom/out/cancelInventoryQ&quot;
node=&quot;localhost&quot; persistence=&quot;APPLICATION_DEFINED&quot;
priority=&quot;APPLICATION_DEFINED&quot; specifiedPriority=&quot;0&quot;
expiry=&quot;APPLICATION_DEFINED&quot; specifiedExpiry=&quot;0&quot;/&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;
&lt;resources.jdbc:JDBCProvider xmi:id=&quot;JDBCProvider_1106536192663&quot;
name=&quot;Oracle Thin JDBC Provider&quot; description=&quot;Oracle JDBC Thin
Driver&quot;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
&lt;classpath&gt;${ORACLE_JDBC_DRIVER_PATH}/ojdbc14.jar&lt;/classpath&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;factories
xmi:type=&quot;resources.jdbc:DataSource&quot;
xmi:id=&quot;DataSource_1106536192663&quot; name=&quot;GID Data Source&quot; jndiName=&quot;jdbc/gidd1&quot;
description=&quot;An Oracle DataSource.&quot; category=&quot;&quot;
authDataAlias=&quot;GIDD1&quot; statementCacheSize=&quot;10&quot;
datasourceHelperClassname=&quot;com.ibm.websphere.rsadapter.OracleDataStoreHelper&quot;
relationalResourceAdapter=&quot;builtin_rra&quot;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;propertySet xmi:id=&quot;J2EEResourcePropertySet_1106536192665&quot;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;resourceProperties xmi:id=&quot;J2EEResourceProperty_1106536192667&quot;
name=&quot;driverType&quot; type=&quot;java.lang.String&quot;
value=&quot;&quot; description=&quot;The type of the driver. The possible
values are: thin, oci8.&quot; required=&quot;false&quot;/&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/propertySet&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;connectionPool
xmi:id=&quot;ConnectionPool_1106536192663&quot;
connectionTimeout=&quot;1800&quot; maxConnections=&quot;10&quot;
minConnections=&quot;1&quot; reapTime=&quot;180&quot;
unusedTimeout=&quot;1800&quot; agedTimeout=&quot;0&quot; purgePolicy=&quot;EntirePool&quot;/&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mapping
xmi:id=&quot;MappingModule_1106536192665&quot;
mappingConfigAlias=&quot;DefaultPrincipalMapping&quot;
authDataAlias=&quot;GIDD1&quot;/&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;/factories&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;
&lt;/resources.jdbc:JDBCProvider&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&lt;/xmi:XMI&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>After writing out the file,
the &quot;xmi:&quot; prefix has been removed from the attributes, such as
xmi:id. This causes an error when the outputted xml file is used by its
application.<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&lt;?xml
version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&lt;xmi:XMI
xmlns:xmi=&quot;http://www.omg.org/XMI&quot;
xmlns:resources.j2c=&quot;http://www.ibm.com/websphere/appserver/schemas/5.0/resources.j2c.xmi&quot;
version=&quot;2.0&quot;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp; &lt;resources.jms:JMSProvider
id=&quot;builtin_jmsprovider&quot; name=&quot;WebSphere JMS Provider&quot;
description=&quot;Built-in WebSphere JMS Provider&quot;
externalInitialContextFactory=&quot;&quot; externalProviderURL=&quot;&quot;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;factories
type=&quot;resources.jms.internalmessaging:WASQueue&quot;
id=&quot;WASQueue_1112308680518&quot; name=&quot;CancelInventoryQ&quot;
jndiName=&quot;jms/mq/ecom/out/cancelInventoryQ&quot;
node=&quot;localhost&quot; persistence=&quot;APPLICATION_DEFINED&quot;
priority=&quot;APPLICATION_DEFINED&quot; specifiedPriority=&quot;0&quot; expiry=&quot;APPLICATION_DEFINED&quot;
specifiedExpiry=&quot;0&quot; /&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp; &lt;/resources.jms:JMSProvider&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;
&lt;resources.jdbc:JDBCProvider id=&quot;JDBCProvider_1106536192663&quot;
name=&quot;Oracle Thin JDBC Provider&quot; description=&quot;Oracle JDBC Thin
Driver&quot;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
&lt;classpath&gt;${ORACLE_JDBC_DRIVER_PATH}/ojdbc14.jar&lt;/classpath&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;factories
type=&quot;resources.jdbc:DataSource&quot;
id=&quot;DataSource_1106536192663&quot; name=&quot;GID Data Source&quot;
jndiName=&quot;jdbc/gidd1&quot; description=&quot;An Oracle DataSource.&quot;
category=&quot;&quot; authDataAlias=&quot;GIDD1&quot;
statementCacheSize=&quot;10&quot; datasourceHelperClassname=&quot;com.ibm.websphere.rsadapter.OracleDataStoreHelper&quot;
relationalResourceAdapter=&quot;builtin_rra&quot;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;propertySet
id=&quot;J2EEResourcePropertySet_1106536192665&quot;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;resourceProperties id=&quot;J2EEResourceProperty_1106536192667&quot;
name=&quot;driverType&quot; type=&quot;java.lang.String&quot; value=&quot;&quot;
description=&quot;The type of the driver. The possible values are: thin,
oci8.&quot; required=&quot;false&quot; /&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/propertySet&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;connectionPool
id=&quot;ConnectionPool_1106536192663&quot; connectionTimeout=&quot;1800&quot;
maxConnections=&quot;10&quot; minConnections=&quot;1&quot;
reapTime=&quot;180&quot; unusedTimeout=&quot;1800&quot;
agedTimeout=&quot;0&quot; purgePolicy=&quot;EntirePool&quot; /&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mapping
id=&quot;MappingModule_1106536192665&quot;
mappingConfigAlias=&quot;DefaultPrincipalMapping&quot;
authDataAlias=&quot;GIDD1&quot; /&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; &lt;/factories&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;
&lt;/resources.jdbc:JDBCProvider&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>&lt;/xmi:XMI&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Is there something I can do
to prevent it from being remove or somehow put it back? Any help would be
greatly appreciated.<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Thanks!<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>Mike<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><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>

</div>

</body>

</html>