Re: Validating XSD(s)

2005-05-27 Thread Gareth Reakes
Hey, Elisha Berns wrote: Gareth, Thanks for the additional comments, it's good to know what the actual developers of a tool think about it! Rather any implementation of the schema specs. Your comments beg the question what other schema standard looks better than XSD at this point, Relax?,

Re: Validating XSD(s)

2005-05-26 Thread Gareth Reakes
Hi Elisha, I wrote a blog entry on this a little while ago. Take a look at http://blog.parthenoncomputing.com/xerces/archives/2005/04/can_i_validate.html Cheers, Gareth Elisha Berns wrote: Gareth, Thanks for the correction. So how do you suggest for xsd validation (without an

Re: Validating XSD(s)

2005-05-26 Thread Axel Weiß
Gareth Reakes wrote: blog.parthenoncomputing.com/xerces/archives/2005/04/can_i_validate.ht ml Hi Gareth, $ ping blog.parthenoncomputing.com ping: unknown host blog.parthenoncomputing.com Is your blog server down? Axel -- Humboldt-Universität zu Berlin Institut für

RE: Validating XSD(s)

2005-05-26 Thread Elisha Berns
Gareth, Thanks for the reply and the blog entry, it's a good idea. Well my question again is how best to use Xerces to validate XSDs? What isn't clear from the blog is the degree of fuzziness involved when Xerces does successfully 1) load an XSD schema, 2) load an XML document that has a schema

Re: Validating XSD(s)

2005-05-26 Thread Gareth Reakes
Hey Elisha, Elisha Berns wrote: Well my question again is how best to use Xerces to validate XSDs? What isn't clear from the blog is the degree of fuzziness involved when Xerces does successfully 1) load an XSD schema, 2) load an XML document that has a schema when full schema checking is

Re: Validating XSD(s)

2005-05-26 Thread Boris Kolpackov
Elisha Berns [EMAIL PROTECTED] writes: But my question is, once again, assuming that you are only using Xerces, what is the best and most thorough way to validate an XSD? Alright, seeing that you are asking this 10th time I will take a shot. In my code I do basically the following: //

Re: Validating XSD(s)

2005-05-26 Thread Neil Graham
Kolpackov [EMAIL PROTECTED] Sent by: news [EMAIL PROTECTED] 05/26/2005 12:39 PM Please respond to c-dev To c-dev@xerces.apache.org cc Subject Re: Validating XSD(s) Elisha Berns [EMAIL PROTECTED] writes: But my question is, once again, assuming that you are only using Xerces, what

RE: Validating XSD(s)

2005-05-26 Thread Elisha Berns
additional schema languages? Elisha -Original Message- From: Gareth Reakes [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 10:27 AM To: c-dev@xerces.apache.org Subject: Re: Validating XSD(s) Hey, Neil Graham wrote: Hi Elisha, The code Boris has looks pretty much optimal

Re: Validating XSD(s)

2005-05-26 Thread Boris Kolpackov
Elisha Berns [EMAIL PROTECTED] writes: I can't figure out two things in your code: parser-setFeature (XMLUni::fgDOMNamespaces, true); I only see a feature called fgSAX2CoreNameSpaces for the SAX2XMLReader interface, what interface are you using? Or what interface does this feature

RE: Validating XSD(s)

2005-05-26 Thread Elisha Berns
Boris, Thanks for the clarification. Elisha Berns [EMAIL PROTECTED] writes: I can't figure out two things in your code: parser-setFeature (XMLUni::fgDOMNamespaces, true); I only see a feature called fgSAX2CoreNameSpaces for the SAX2XMLReader interface, what interface are you

RE: Validating XSD(s)

2005-05-25 Thread Elisha Berns
Gareth, Thanks for the correction. So how do you suggest for xsd validation (without an instance document)? Thanks, Elisha [EMAIL PROTECTED] wrote: Yes, there actually is a theoretically better way. The only problem is that it did not work for me when I tried it before, and I do not

Validating XSD(s)

2005-05-23 Thread Elisha Berns
A question, not a bug: What is the best way to validate XSD schemas using Xerces? I know I can use SAX2XMLReader:: loadGrammar () to load a schema file and get a Grammar object. That's perhaps the simplest way, and I can't tell whether it's the best way to get detailed errors. Thanks, Elisha