Internal Xerces structure available?

2004-01-05 Thread Farmer, Rod (Contractor)
Hello, wondering if anyone else has thought about a similar problem as the one below, I currently use Xerces-J to serialize Java objects to XML, send this across a socket and have the corresponding object recreated in both a Java and C++. We are finding that in profiling our software, signific

Re: Occurrence constraints

2004-01-05 Thread Maksym Kovalenko
And yes, latest xerces supports/implements this featue. Andrea Bigger wrote: Hi. In the W3C Recommendation I found following statement: << [...]. The fixed attribute is used in both attribute and element declarations to ensure that the attributes and elements are set to particular values.

Re: Occurrence constraints

2004-01-05 Thread Maksym Kovalenko
It may be that parser can not locate schema of xml you're parsing. Make sure you have schema specified either in xml file itself or using one of the properties available. Andrea Bigger wrote: Hi. In the W3C Recommendation I found following statement: << [...]. The fixed attribute is used

Occurrence constraints

2004-01-05 Thread Andrea Bigger
Hi. In the W3C Recommendation I found following statement: << [...]. The fixed attribute is used in both attribute and element declarations to ensure that the attributes and elements are set to particular values. For example, po.xsd contains a declaration for the country attribute, which is decla

Re: AW: Schema validation with SAX or DOMParser?

2004-01-05 Thread Reinhard Brandstädter
I'm doing exactly this with: domparser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation";, schema); domparser.setFeature("http://xml.org/sax/features/validation";, true); domparser.setFeature("http://apache.org/xml/features/validation/schema";, true); wher

Request for new parser feature: all content model errors

2004-01-05 Thread Phil Weighill-Smith
I am using XERCES to validate XML documents against an XSD schema. I have discovered that only the first content model error is reported. However, I need to be able to identify as many errors as possible in one pass. Thus I'm requesting that a new feature be added to (at least) the SAX parser to pe

Re: XML Validation with XSD

2004-01-05 Thread Michael Glavassevich
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

AW: Schema validation with SAX or DOMParser?

2004-01-05 Thread Bromberg, Dirk / encoway
But this does only work if the xsd location is in the xml file. I'll validate without having the xsd attribute in my xml file! THX Dirk > -Ursprüngliche Nachricht- > Von: Reinhard Brandstädter [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 5. Januar 2004 14:01 > An: [EMAIL PROTECTED] > B

Re: Schema validation with SAX or DOMParser?

2004-01-05 Thread Reinhard Brandstädter
Gurdev Parmar wrote: Features: http://apache.org/xml/features/validation/schema to true. http://xml.org/sax/features/namespaces to true http://xml.org/sax/features/validation to true It was my own stupidity that kept me from validating the file: as you can see I only set the validation feature: >>

XML Validation with XSD

2004-01-05 Thread Bromberg, Dirk / encoway
Hi, is there a way to validate an xml by an xsd without having the line to the xsd e.g.: 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 --

Re: Schema validation with SAX or DOMParser?

2004-01-05 Thread Gurdev Parmar
I, personally, set the following features and properties for my requirements and it works: Features: http://apache.org/xml/features/validation/schema to true. http://xml.org/sax/features/namespaces to true http://xml.org/sax/features/validation to true JAXP property: http://java.sun.com/xml/jaxp/p

Re: Schema validation with SAX or DOMParser?

2004-01-05 Thread Nitin . Gupta
hi there i faced the same problem some time back. I got the solution on this mailing list only. set the following feature to true. http://apache.org/xml/features/validation/dynamic It worked for my code. regards Nitin - T