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
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.
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
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
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
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
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
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
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:
>>
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
--
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
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
12 matches
Mail list logo