Hi,

        I have a XML file like this

                        <?xml version="1.0" encoding="ASCII"?>
                        <!DOCTYPE QUERY SYSTEM "query.dtd">
                        ...

                I want to parse it but I need to do that whithout doing the
validation because if I have to do that I would to get the DTD file from
other place.
                The languaje is java and I have tried this :

                1       DOMParser parser = new DOMParser();
                2
parser.setFeature("http://apache.org/xml/features/allow-java-encodings";,
true);
                3
parser.setFeature("http://apache.org/xml/features/validation/dynamic";,
false);
                4
parser.setFeature("http://xml.org/sax/features/validation";, false);
                5               parser.setValidating(false);
                6                       parser.parse(file);


                I have tried different combinations of lines 3, 4 and 5
writing them or not and it doesn't work.

                Could anybody help me ?


> Gerardo Gonz�lez Mu�oz
*  mailto:[EMAIL PROTECTED]
> *  +34 91 807 1886
Fax +34 91 807 1126                
> Lucent Technologies  O
                          Bell Labs Innovations


Reply via email to