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. 
--------------------------------------------------------
 
NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited. 
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to