Have you tried org.apache.struts.config.impl.ModuleConfigImpl.findActionConfigs ?
On 5/25/05, Dahnke, Eric (Company IT) <[EMAIL PROTECTED]> wrote: > > Hello, > > I've written a little script to parse struts-config.xml in order to get > a list of the actions and types, etc. It works great if I comment out > the <!DOCTYPE... > line at the top of the file. > > Without commenting the <!DOCTYPE... > line I get an IOException related > to a parse error when executing the following code: > > DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); > dbf.setValidating(false); > dbf.setIgnoringComments(true); > > try { > Document doc = dbf.newDocumentBuilder().parse(new > File(contextPath + > "/web/WEB-INF/struts-config.xml")); > > } catch ... > > This is with JAXP using JDK 1.4.2. Can I comment out the <!DOCTYPE... > > line or otherwise get rid of it? Neither Struts nor Tomcat seem to mind. > The application starts and works fine. Thoughts? Workarounds? Thx. > -------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]