<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I try to convert a jdom to dom:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>org.jdom.input.DOMBuilder domBuilder = new
org.jdom.input.DOMBuilder("org.jdom.adapters.XercesDOMAdapter");<BR>org.jdom.Document
jdom = domBuilder.build(dom); </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>and get exception:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Exception in thread "main"
org.jdom.IllegalNameException: The name "null" is not legal for JDOM/XML
elements: XML names cannot be null or empty.<BR> at
org.jdom.Element.<init>(Element.java:137)<BR> at
org.jdom.Element.<init>(Element.java:160)<BR> at
org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java:409)<BR>
at
org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java:398)<BR>
at
org.jdom.input.DOMBuilder.build(DOMBuilder.java:359)<BR>
...</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>every element in dom has a name so why this
exception?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>i'm using b6</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>