The problem I am experiencing could be my misunderstanding of the DOM, objects and servlets - so I was/am looking for guidance on how to narrow the problem down, because as you can tell I am pretty clueless. - When I parse a DOM Document I put it into a variable. - Then I want to set one j2ee-servlet-container-webapp's context attribute (name=object pair that is available in the servlet container). - When I set it equal to anything other then the parsed document I get what I expect. - When I try to put the parsed document in the context attribute I always get null. Should I be able to store a parsed document in a ServletContext attribute? ----- Original Message ----- From: "Gary L Peskin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 26, 2001 7:08 PM Subject: Re: xalan d7 build bug? was - Re: help - java - Basic DOM parse > Scott, Don -- > > I think Rob is talking about a problem with the documentation at > http://xml.apache.org/xalan-j/usagepatterns.html#plug > > It does state that all three files are in xalan.jar. > > Gary > > [EMAIL PROTECTED] wrote: > > > > > But when I look in the xalan.jar there is only: > > > javax.xml.transform.TransformerFactory > > > org.apache.xalan.processor.TransformerFactoryImpl > > > > I think I am confused as Edwin about your problem. > > > > I am guessing that you are expecting to see javax.xml.parsers.* stuff and > > implementation in Xalan. These are implemented in Xerces, not Xalan. > > Xalan only implements the javax.xml.transform.* part of JAXP 1.1. Please > > see http://xml.apache.org/xerces-j/index.html. > > > > -scott > > > > > > "Robert > > Koberg" To: <[EMAIL PROTECTED]> > > <[EMAIL PROTECTED] cc: (bcc: Scott Boag/CAM/Lotus) > > om> Subject: xalan d7 build bug? was - Re: help - java - Basic DOM parse > > > > 07/26/2001 > > 12:32 PM > > Please > > respond to > > general > > > > > > > > I failed to mention I am using Xalan (D7). In the documentation (that says > > D6 at the top) it states: > > --------------------- > > The Java API for XML Processing interfaces enable you to isolate your > > application from the internal implementation details of a given > > Transformer, > > SAX parser, or DOM parser. For each of these objects, there is an abstract > > Factory class with a static newInstance() method that instantiates a > > concrete Factory which wraps the underlying implementation. These > > newInstance() methods use system property settings to determine which > > implementation to instantiate. > > Xalan-Java is distributed with system property settings for the Xalan XSLT > > Transformer and the Xerces DOM and SAX parsers. These settings are in > > xalan.jar in META-INF/services (see src/META-INF/services). > > System property Setting > > javax.xml.transform.TransformerFactory > > org.apache.xalan.processor.TransformerFactoryImpl > > javax.xml.parsers.DocumentBuilderFactory > > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl > > javax.xml.parsers.SAXParserFactory > > org.apache.xerces.jaxp.SAXParserFactoryImpl > > ------------------------------- > > > > But when I look in the xalan.jar there is only: > > javax.xml.transform.TransformerFactory > > org.apache.xalan.processor.TransformerFactoryImpl > > > > ----- Original Message ----- > > From: "Robert Koberg" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, July 26, 2001 9:14 AM > > Subject: help - java - Basic DOM parse > > > > > I must be missing something very basic about DOM parsing. > > > > > > Here is an excerpt of the java code: > > > > > > DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance(); > > > DocumentBuilder docbuilder = dfactory.newDocumentBuilder(); > > > Document doc = docbuilder.parse(this_config); > > > > > > context.setAttribute("boo1", this_config); > > > context.setAttribute("boo2", doc); > > > > > > The output indicates the correct file (with or without the file:///) if I > > > check it in the filesystem, but doc is always null. dfactory, docbuilder > > > all show that they have been created. The xml file is well-formed. > > > > > > thanks for any help, > > > Rob > > --------------------------------------------------------------------- > In case of troubles, e-mail: [EMAIL PROTECTED] > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]