DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14876>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14876 Validation: Why can't the schemaLocation be pulled from the xml document? [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2002-11-28 20:24 ------- You don't *have to* set schemaSource. When a namespace is referenced in the instance document, the parser first looks for a schema in the schemaSource property. If nothing is found there, it then looks for it in xsi:schemaLocation attribute(s). So you don't have to dig up the xsi:schemaLocation attribute(s) and convert them to the schemaSource propety. I tried the following: parser.setAttribute("schemaSource", "xsd2"); <ns1:root xmlns:xsi="..." xmlns:ns1="ns1" xsi:schemaLocation="ns1 xsd1"> ... Xerces found xsd1 and used it to validate the instance. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
