SV: [jdom-interest] DOMBuilder problem

Per Norrman pernorrman at
Fri Oct 10 00:43:04 PDT 2003

do you have a specific reason for using DOMBuilder? Otherwise, you're
better of using SAXBuilder.
-----Ursprungligt meddelande-----
Från: jdom-interest-admin at [mailto:jdom-interest-admin at] För
Gina Pan
Skickat: den 10 oktober 2003 00:43
Till: jdom-interest at
Ämne: [jdom-interest] DOMBuilder problem

I am trying to use DOMBuilder to read an XML file to a DOM tree but it gives
me an error as shown below:
org.jdom.JDOMException: Error in building from stream: Class
org.jdom.input.DOMBuilder can not access a member of class
gnu.xml.dom.JAXPFactory$JAXPBuilder with modifiers "public"
Here is my code which causes the problem:
import org.jdom.*;
import org.jdom.input.*;
import org.jdom.output.*;
public void loadFromXML () throws Exception {
    Document document = null;
    Element element = null;
    InputStream stream = getClass().getResourceAsStream ("/config.xml");
    if (stream == null){
    DOMBuilder builder = new DOMBuilder ();
    document = (stream);
    if ((document == null)
     || (document.getRootElement() == null)
     || (!document.getRootElement().getName().equals("config")))
      throw new Exception("invalid document");
Could anybody please help me?  
Many thanks,
DISCLAIMER: The content of this email is confidential and may contain
legally privileged information intended only for the individual or entity
named above.  Access to this message by anyone else is unauthorised.  If you
are not the intended recipient, please be advised that the use, distribution
and publication of the above information is prohibited. If you have received
this email in error, please contact us by returning the email and destroying
the original. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the jdom-interest mailing list