logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

Re: Document is invalid: no grammar found.: msg#00034

Subject: Re: Document is invalid: no grammar found.





Try setting the following features to true and see if it helps.

http://apache.org/xml/features/validation/schema
http://apache.org/xml/features/validation/schema-full-checking





                                                                                
                                                       
                      "Hoebel, John"                                            
                                                       
                      <John.Hoebel@qwes        To:       
<xerces-j-user@xxxxxxxxxxxxxx>                                                
                      t.com>                   cc:       "Hoebel, John" 
<John.Hoebel@xxxxxxxxx>                                        
                                               Subject:  Document is invalid: 
no grammar found.                                        
                      02/11/2004 10:47                                          
                                                       
                      AM                                                        
                                                       
                      Please respond to                                         
                                                       
                      xerces-j-user                                             
                                                       
                                                                                
                                                       



I am trying to validate a xml document with a schema using an external
schema in Java:

    20           String schemaURI = "file:///test.xsd";
    21           DOMParser parser = new DOMParser();
    22
parser.setFeature("http://xml.org/sax/features/validation";, true);
    23           parser.setProperty(
    24
"http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocat
ion",
    25              schemaURI);

I get:

[Error] :1:23: Document is invalid: no grammar found.
[Error] :1:23: Document root element "XXXX_INTERVAL_REQUEST", must match
DOCTYPE root "null"

I have tried different formats for the different schema uri value. None
make a difference.

I am using Xerces-J-bin.2.6.1 version.

Any suggestions? I would appreciate any help.

Thanks,
John




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xxxxxxxxxxxxxx
For additional commands, e-mail: xerces-j-user-help@xxxxxxxxxxxxxx



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>