Hello Dirk, Yes, I can think of a couple of ways you should be able to accomplish that. There's a property [1] you can set on the parser which behaves similarly to the noNamespaceSchemaLocation hint in the instance document. You can also preparse the schema and place it in a grammar pool allowing the parser to read the schema from a cache. See this FAQ [2] on how to do that.
Hope that helps. [1] http://xml.apache.org/xerces2-j/properties.html#schema.external-noNamespaceSchemaLocation [2] http://xml.apache.org/xerces2-j/faq-grammars.html On Mon, 5 Jan 2004, Bromberg, Dirk / encoway wrote: > Hi, > > is there a way to validate an xml by an xsd without having the line to the > xsd > e.g.: > <news xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="index.xsd"> > > i've only the 2 files like transforming an xml by an xsl via xalan? > > in java. > > thx > > Dirk > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------- Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
