Take a look at JAXP 1.3. It will let you do that without relying on any particular parser.
[EMAIL PROTECTED] wrote:
Hello,
I'm sorry if this is already documented, if so please indicate me where because I haven't found it. (or I wasn't looking in the right place)
I have problems using xsds with dom4j (I'm using version 1.5.2)
the only way I found to include my xsd is the following: xmldoc.getRootElement().addNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance"); xmldoc.getRootElement().addAttribute("xsi:noNamespaceSchemaLocation", "http://myxsd.xsd"); but this doesn't seem very optimal to me.
-- Kohsuke Kawaguchi
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user