[jdom-interest] error referencing xml schema from xml file
jmuhlestein at i-link.net
Thu Sep 6 08:35:54 PDT 2001
I can't say if this is absolutely required but it looks to me like you need
to add a schemaLocation attribute.
You can look at section 5.6 of the Schema Primer at the W3C for more info
> -----Original Message-----
> From: Makhlin, Boris [mailto:BMakhlin at temgweb.com]
> Sent: Tuesday, September 04, 2001 1:51 PM
> To: 'jdom-interest at jdom.org'
> Subject: [jdom-interest] error referencing xml schema from xml file
> When I parse following xml with turned on validation, I am
> getting error
> Error on line 2 of document
> General Schema Error: Grammar with uri :
> http://localhost:8080/purchaseOrder, can not found.
> <?xml version="1.0"?>
> I am using Resin http server.
> I can copy and paste http://localhost:8080/purchaseOrder.xsd
> to my brower
> address field to load purchaseOrder.xsd into it. I don't see
> text or tree in
> the browser just a white screen but when I view source I see
> xsd content.
> This means JDOM should have access to xml schema, but it
> doesn't. I tried to
> debug xerces XMLValidator because that is where exception is
> comming from.
> But my source, which I just downloaded doesn't have definition of
> validateElementAndAttributes method therefore it I can not compile it.
> Does my xml looks right?
> I am missing something very simple. Please, help me resolve
> my problem. Any
> ideas are appreciated.
> thank you
> To control your jdom-interest membership:
uraddr at yourhost.com
More information about the jdom-interest