[jdom-interest] error referencing xml schema from xml file

John Muhlestein 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.

<?xml version="1.0"?>

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
> Hi,
> When I parse following xml with turned on validation, I am 
> getting error
> Error on line 2 of document 
> file:/D:/resin-1.2.3/doc/purchaseOrder.xml:
> General Schema Error: Grammar with uri :
> http://localhost:8080/purchaseOrder, can not found.
> <?xml version="1.0"?>
> <apo:purchaseOrder 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:apo="http://localhost:8080/purchaseOrder" 
> orderDate="1999-10-20">
> </apo:purchaseOrder>
> 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:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com

More information about the jdom-interest mailing list