Thanks Filip, but I get the same error: SAXReader reader = new SAXReader(true); reader.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation", args[1]); ...
<errors> <error column="19" line="1" systemID="file:///C:/tmp/myxml.xml">Document is invalid: no grammar found.</error> <error column="19" line="1" systemID="file:///C:/tmp/myxml.xml">Document root element "event-bus:runtime", must match DOCTYPE root "null".</error> </errors> Regards Patrizio -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Filip Jirsák Sent: lunedì, 7. luglio 2008 15:36 To: Ferlito Patrizio (B-Source - Lugano) Subject: Re: [dom4j-dev] error validating my document Hello, probably you must use "http://apache.org/xml/properties/schema/external-schemaLocation" property (without "noNamespace") - you use "http://www.bsource.ch/EventBus" namespace in your document. Regards Filip IMPORTANT: This e-mail transmission is intended for the named addressee(s)only. Its contents are private, confidential and protected from disclosure and should not be read, copied or disclosed by any other person. If you are not the intended recipient, we kindly ask you to notify the sender immediately by telephone (+41 (0)58 806 50 00), to redirect the message to the account "[EMAIL PROTECTED]" and to delete this e-mail. E-mail transmissions may be intercepted, altered or read by unauthorized persons and may contain viruses. Therefore, it is recommended that you use regular mail or courier services for any information intended to be confidential. However, by sending us messages through e-mail, you authorize and instruct us to correspond by e-mail in the relevant matter. Thank you. ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ dom4j-dev mailing list dom4j-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-dev