<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.59">
<TITLE>Request for help using JDOM Beta 6 to create namespace declaration</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">I am working to create an XML document that is compliant with a published standard, and am having difficulty using JDOM to generate the desired declaration.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">This is the desired output, based on the standards document</FONT> <FONT SIZE=1 FACE="Arial">(3GPP TS 32.104 V3.3.0 (2000-09) )</FONT> <FONT SIZE=2 FACE="Arial">I need to be compliant with:</FONT></P>
<P><FONT SIZE=2 FACE="Arial"><!DOCTYPE mdc SYSTEM "MeasDataCollection.dtd"></FONT>
<BR><FONT SIZE=2 FACE="Arial"><mdc xmlns:HTML="<A HREF="http://www.w3.org/TR/REC-xml" TARGET="_blank">http://www.w3.org/TR/REC-xml</A>"></FONT>
<BR><FONT SIZE=2 FACE="Arial"></mdc></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">This is the dtd:</FONT>
<BR><FONT SIZE=2 FACE="Arial"><!-- MeasDataCollection.dtd version 1.1--> </FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT mdc (mfh, md*, mff)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT mfh (ffv, sn, st, vn, cbt)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT md (neid, mi*)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT neid (neun, nedn)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT mi (mts, gp, mt*, mv*)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT mv (moid, r*, sf?)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT mff (ts)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT ts (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT sf (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT r (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT mt (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT moid (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT gp (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT mts (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT nedn (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT neun (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT cbt (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT vn (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT st (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT sn (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!ELEMENT ffv (#PCDATA)></FONT>
<BR><FONT SIZE=2 FACE="Arial"><!-- end of MeasDataCollection.dtd --></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">The output I have been able to achieve using the ctor</FONT> <FONT SIZE=2 FACE="Courier New">public<B> Element</B>(java.lang.String name,<U> </U></FONT><U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">Namespace</FONT></U><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New"></FONT> <FONT SIZE=2 FACE="Courier New">namespace) is:</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New"><!DOCTYPE mdc SYSTEM "MeasDataCollection.dtd"></FONT>
<BR><FONT SIZE=2 FACE="Courier New"><HTML:mdc xmlns:HTML="<A HREF="http://www.w3.org/TR/REC-xml" TARGET="_blank">http://www.w3.org/TR/REC-xml</A>"></FONT>
<BR><FONT SIZE=2 FACE="Courier New"></HTML:mdc></FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">I am using XMLSpy to validate the generated XML. When I load in my XML file I get this error:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">This file is not valid:Root element HTML:mdc not defined in DTD/Schema</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">What can I do to generate the standard namespace declaration? </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thank you for your help,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Henry Charlton</FONT>
<BR><FONT SIZE=2 FACE="Arial">UMTS OAMP Design</FONT>
<BR><FONT SIZE=2 FACE="Arial">Nortel Networks</FONT>
<BR><FONT SIZE=2 FACE="Arial">tel: 972.685.4405</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>