schema validation

2005-04-15 Thread Milena Caires
Every time I try to run the xerces-c samples related to schema validation I get the following message: %./SAX2Count personal-schema.xml Fatal Error at file /home/my_home/xerces/xerces-c-src_2_6_0/bin/personal-schema.xml, line 4, char 50 Message: An exception occurred

Re: schema validation usage

2005-03-10 Thread Steve Szabo
On Wed, 2005-03-09 at 14:44 -0800, [EMAIL PROTECTED] wrote: > > XercesDOMParser *parser = new XercesDOMParser; > > DOMTreeErrorReporter *errReporter = new DOMTreeErrorReporter (); > > Do you really need to build a DOM tree? No I don't, but I have also tried the SAX parser with the same results >

Re: schema validation usage

2005-03-09 Thread david_n_bertoni
> XercesDOMParser *parser = new XercesDOMParser; > DOMTreeErrorReporter *errReporter = new DOMTreeErrorReporter (); Do you really need to build a DOM tree? > It seems that each call to event () is fairly expensive - running at about 23 docs/sec > on my system here at work I can't give an opinio

schema validation usage

2005-03-09 Thread Steve Szabo
Title: Message Greetings   I'm testing the xerces C++ parser and I have a few questions:   I would like to create a parser within a service daemon and schema validate documents multiple times   on startup:   XMLPlatformUtils::Initialize ();   XercesDOMParser *parser = new XercesDOMParser; D

[jira] Resolved: (XERCESC-1372) XML schema validation doesn't seems to work in samples

2005-03-09 Thread cargilld (JIRA)
[ http://issues.apache.org/jira/browse/XERCESC-1372?page=history ] cargilld resolved XERCESC-1372: --- Resolution: Fixed Use StdInParse -v=always -n -s XML schema validation doesn't seems to work in sa

[jira] Created: (XERCESC-1372) XML schema validation doesn't seems to work in samples

2005-03-09 Thread Thierry Mallard (JIRA)
XML schema validation doesn't seems to work in samples -- Key: XERCESC-1372 URL: http://issues.apache.org/jira/browse/XERCESC-1372 Project: Xerces-C++ Type: Bug Components: Samples/Tests Versions:

SAX parsing with schema validation eats memory

2005-02-18 Thread Henrik Hermansson
Hi, I have a simple application that uses the SAX2 parser to parse a large XML file with schema validation. During the parsing I can see the application steadily using more memory. If I turn off the validation (fgSAX2CoreValidation = false) the application uses a fixed amount of memory regardless

RE: Xerces and Schema validation

2005-02-14 Thread Alberto Massari
At 14.50 14/02/2005 +, [EMAIL PROTECTED] wrote: I am investigating how XercesC can be used to parse a XML and validate it against a XML schema. Greatly appreciate code snippets that show how this is done. Have a look at the samples DOMCount or SAXCount; they have an option that enables valid

Re: Xerces and Schema validation

2005-02-14 Thread Gareth Reakes
Hi, Take a look at the samples. Gareth [EMAIL PROTECTED] wrote: I am investigating how XercesC can be used to parse a XML and validate it against a XML schema. Greatly appreciate code snippets that show how this is done. Many Thanks Ebs PLEASE READ: The information contained in this

RE: Xerces and Schema validation

2005-02-14 Thread ebi.khazaneh
I am investigating how XercesC can be used to parse a XML and validate it against a XML schema.   Greatly appreciate code snippets that show how this is done.   Many Thanks Ebs   PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) o

RE: Schema validation

2004-12-31 Thread Alberto Massari
rg > Subject: RE: Schema validation > > > Hi Milan, > > At 16.00 31/12/2004 +0100, Milan Tomic wrote: > >Hi Albero, > > > > I've tried that and got the error as it is in the > attachment. > > you are validating the XML file against the sc

RE: Schema validation

2004-12-31 Thread Milan Tomic
t: Friday, December 31, 2004 4:10 PM > To: xerces-c-dev@xml.apache.org > Subject: RE: Schema validation > > > Hi Milan, > > At 16.00 31/12/2004 +0100, Milan Tomic wrote: > >Hi Albero, > > > > I've tried that and got the error as it is in the > atta

RE: Schema validation

2004-12-31 Thread Alberto Massari
Hi Milan, At 16.00 31/12/2004 +0100, Milan Tomic wrote: Hi Albero, I've tried that and got the error as it is in the attachment. you are validating the XML file against the schema for the digital signatures, but your file also contains elements that are in the empty namespace. As you have

RE: Schema validation

2004-12-31 Thread Milan Tomic
Hi Albero, I've tried that and got the error as it is in the attachment. This is my code: XercesDOMParser * parser = new XercesDOMParser; Janitor j_parser(parser); parser->setDoNamespaces(true); parser->setCreateEntityReferenceNodes(true); if (doCheckSchema) { HINSTANCE insApp =

RE: Schema validation

2004-12-31 Thread Alberto Massari
Hi Milan, if I recall it correctly, that mail was addressing a different problem (forcing validation against a DTD); and this required some carefully coding. If you need to validate against one or more XMLSchemas, this should work: XercesDOMParser * parser = new XercesDOMParser; MemBufInputSource

RE: Schema validation

2004-12-31 Thread Milan Tomic
P.S. If I wish to check some XML file with more than 1 schema in the same time, should I use XMLGrammarPool or something else? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Schema validation

2004-12-31 Thread Milan Tomic
Hi Alberto, I've succeeded to manage setExternalSchemaLocation() to work OK, but I would much raither like to use loadGrammar(). I've found in mail archives ( http://www.mail-archive.com/xerces-c-dev@xml.apache.org/msg13604.html ) your response on this topic and I did the same using this c

Re: Schema validation

2004-12-30 Thread Alberto Massari
Hi Milan, At 18.00 30/12/2004 +0100, Milan Tomic wrote: [...] parser->setExternalSchemaLocation("C:\\xmldsig-core-schema.xsd"); The method setExternalSchemaLocation expects a sequence of pairs of strings, where the first one is the namespace URI and the second is the location of the schema file.

Schema validation

2004-12-30 Thread Milan Tomic
Title: Schema validation Hello,     If I try to validate (with Xerces 2.5) my.xml file with some schema I got this error: Fatal Error at file C:\my.xml , line 1 column 67 Message: The schemaLocation attribute does not contain pairs of values.     I'm attaching m

[jira] Commented: (XERCESC-697) Incorrect Schema Validation Failure When Redefining Complex Type with Simple Content

2004-11-26 Thread Frank Gierschner (JIRA)
eSchemaLocation=".\ExempleFinal.xsd"> << As this initial bug report is about 2 years old I would appreciate to be informed if and when it will be fixed. Greetings Frank > Incorrect Schema Validation Failure When Redefining Complex Type with Simple > Content > -

[jira] Updated: (XERCESC-697) Incorrect Schema Validation Failure When Redefining Complex Type with Simple Content

2004-11-02 Thread Alberto Massari (JIRA)
[ http://nagoya.apache.org/jira/browse/XERCESC-697?page=history ] Alberto Massari updated XERCESC-697: Priority: Major > Incorrect Schema Validation Failure When Redefining Complex Type with Simple Cont

[jira] Resolved: (XERCESC-1282) DOMPrint Crash during schema validation

2004-10-13 Thread xerces-c-dev
the issue: http://issues.apache.org/jira/browse/XERCESC-1282 Here is an overview of the issue: - Key: XERCESC-1282 Summary: DOMPrint Crash during schema validation Type: Bug Status: Resolved Priority

[jira] Commented: (XERCESC-1282) DOMPrint Crash during schema validation

2004-10-02 Thread xerces-c-dev
wse/XERCESC-1282?page=comments#action_53619 - View the issue: http://issues.apache.org/jira/browse/XERCESC-1282 Here is an overview of the issue: - Key: XERCESC-1282 Summary: DOMPrint Cras

[jira] Commented: (XERCESC-1282) DOMPrint Crash during schema validation

2004-10-01 Thread xerces-c-dev
http://issues.apache.org/jira/browse/XERCESC-1282 Here is an overview of the issue: - Key: XERCESC-1282 Summary: DOMPrint Crash during schema validation Type: Bug Status: Unassigned Pr

[jira] Commented: (XERCESC-1282) DOMPrint Crash during schema validation

2004-09-30 Thread xerces-c-dev
rview of the issue: - Key: XERCESC-1282 Summary: DOMPrint Crash during schema validation Type: Bug Status: Unassigned Priority: Major Project: Xerces-C++ Components: Validating P

Re: W3C Schema Validation Xerces C++

2004-09-23 Thread Alberto Massari
At 21.47 22/09/2004 -0700, Michael Sirivianos wrote: I use the following code to initialize my XercesDOMParser to parse the >xml and perform Schema Validation but it doesn't perform the validation. [...] >My XML files processing instructions and attributes are: > >XML: > &g

W3C Schema Validation Xerces C++

2004-09-22 Thread Michael Sirivianos
I use the following code to initialize my XercesDOMParser to parse the >xml and perform Schema Validation but it doesn't perform the validation. > > static const XMLCh gLS[] = { chLatin_L, chLatin_S, chNull }; > DOMImplementation *impl = > DOMIm

RE: Schema validation against a XSD in resource file

2004-09-14 Thread Matthew Berry
Ulrich wrote: > I'd like to validate my xml files against a xsd file linked to my binary (in a Windows resource). > I use a XercesDOMParser instance to create a DOM of my XML. > Is there a possibility to validate against a string wich contains the xsd resource??? If you save the import the XSD in

Re: Schema validation against a XSD in resource file

2004-09-13 Thread Simon Kitching
On Tue, 2004-09-14 at 18:35, Frank, Ulrich wrote: > Hi, > > I'd like to validate my xml files against a xsd file linked to my > binary (in a Windows resource). > I use a XercesDOMParser instance to create a DOM of my XML. > Is there a possibility to validate against a string wich contains the > xs

Schema validation against a XSD in resource file

2004-09-13 Thread Frank, Ulrich
Title: Schema validation against a XSD in resource file Hi, I'd like to validate my xml files against a xsd file linked to my binary (in a Windows resource). I use a XercesDOMParser instance to create a DOM of my XML. Is there a possibility to validate against a string wich contain

Re: DOMPrint and schema validation

2004-09-08 Thread elsa lizette
Hi everybody !! Thank you very much for your answers. I was checking what Gareth recommend me. I downloaded the "xerces-c-current.zip" distribution and tried to compile by myself but I could not see the error messages. However, with this new pre-compiled version I can read them. Thank you both

Re: DOMPrint and schema validation

2004-09-07 Thread Vitaly Prapirny
This is what I see with xercesc 2.5.0 binaries from distribution file xerces-c_2_5_0-windows_nt-msvc_60.zip: = E:\DOMPrint\Debug>DOMPrint -v=always -n -s x1.xml Error at file "E:\DOMPrint\Debug/x1.xml", line 5, column 34 Message: Required attri

Re: DOMPrint and schema validation

2004-09-07 Thread Gareth Reakes
Hi, the first does cause an error message about the required attribute. The only change I met was to put the schema in the same directory as the xml file and referenced it with a relative path. Try this. If this does not do it then try updating to cvs head - thats what I use. Whatever the resu

Re: DOMPrint and schema validation

2004-09-06 Thread elsa lizette
Hello Gareth !! Thank you very much for your reply. I have this schema: -- -- http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified" attributeFormDefault="unqualified">

Re: DOMPrint and schema validation

2004-09-06 Thread Gareth Reakes
Hi, thats certainly not expected behavior. Can you post a minimal xml document and schema that demonstrates this? Cheers, Gareth elsa lizette wrote: Hello everybody !! I am trying to validate an xml using a schema. I compiled DOMPrint example and run it: DOMPrint -v=always -n -s x1.xml However,

DOMPrint and schema validation

2004-09-02 Thread elsa lizette
Hello everybody !! I am trying to validate an xml using a schema. I compiled DOMPrint example and run it: DOMPrint -v=always -n -s x1.xml However, the output reports some errors but they do not have a description: -- Error at file "E:\DOMPrint\Debug/x1.xml", line 70, column

[jira] Closed: (XERCESC-1245) Memory Leak on Schema Validation Failure

2004-07-27 Thread xerces-c-dev
: - Key: XERCESC-1245 Summary: Memory Leak on Schema Validation Failure Type: Bug Status: Closed Priority: Major Resolution: FIXED Project: Xerces-C++ Components: Validating Parser (Schema) (Xerces 1.5 or up only) Versions: Nightly build

[jira] Commented: (XERCESC-1245) Memory Leak on Schema Validation Failure

2004-07-26 Thread xerces-c-dev
: - Key: XERCESC-1245 Summary: Memory Leak on Schema Validation Failure Type: Bug Status: Resolved Priority: Major Resolution: FIXED Project: Xerces-C++ Components: Validating Parser (Schema) (Xerces 1.5 or up

[jira] Resolved: (XERCESC-1245) Memory Leak on Schema Validation Failure

2004-07-26 Thread xerces-c-dev
issue: - Key: XERCESC-1245 Summary: Memory Leak on Schema Validation Failure Type: Bug Status: Resolved Priority: Major Resolution: FIXED Project: Xerces-C++ Components: Validating Parser (S

[jira] Updated: (XERCESC-1245) Memory Leak on Schema Validation Failure

2004-07-26 Thread xerces-c-dev
: - Key: XERCESC-1245 Summary: Memory Leak on Schema Validation Failure Type: Bug Status: Unassigned Priority: Major Project: Xerces-C++ Components: Validating Parser (Schema) (Xerces 1.5 or up only

[jira] Updated: (XERCESC-1245) Memory Leak on Schema Validation Failure

2004-07-26 Thread xerces-c-dev
issue: - Key: XERCESC-1245 Summary: Memory Leak on Schema Validation Failure Type: Bug Status: Unassigned Priority: Major Project: Xerces-C++ Components: Validating Parser (Schema

[jira] Updated: (XERCESC-1245) Memory Leak on Schema Validation Failure

2004-07-26 Thread xerces-c-dev
overview of the issue: - Key: XERCESC-1245 Summary: Memory Leak on Schema Validation Failure Type: Bug Status: Unassigned Priority: Major Project: Xerces-C++ Components: Validating Parser

[jira] Updated: (XERCESC-1245) Memory Leak on Schema Validation Failure

2004-07-26 Thread xerces-c-dev
: - Key: XERCESC-1245 Summary: Memory Leak on Schema Validation Failure Type: Bug Status: Unassigned Priority: Major Project: Xerces-C++ Components: Validating Parser (Schema) (Xerces 1.5

[jira] Updated: (XERCESC-1245) Memory Leak on Schema Validation Failure

2004-07-26 Thread xerces-c-dev
istory - View the issue: http://issues.apache.org/jira/browse/XERCESC-1245 Here is an overview of the issue: - Key: XERCESC-1245 Summary: Memory Leak on Schema Validation Failure Type: Bug

[jira] Created: (XERCESC-1245) Memory Leak on Schema Validation Failure

2004-07-26 Thread xerces-c-dev
: - Key: XERCESC-1245 Summary: Memory Leak on Schema Validation Failure Type: Bug Status: Unassigned Priority: Major Project: Xerces-C++ Components: Validating Parser (Schema) (Xerces 1.5 or up only) Versions: Nightly build (please specify the

Re: schema validation

2004-03-15 Thread Gareth Reakes
Hi, attach the patch to a bug report. The person who commits it is responsible for checking you have done it the correct way. Gareth -- Gareth Reakes, Managing Director+44-1865-811184 Parthenon Computinghttp://www.parthcomp.com On Mon, 15 Mar 2004, Kai-Uwe

RE: schema validation

2004-03-15 Thread Hiran.Chaudhuri
mailto:[EMAIL PROTECTED] > Sent: Monday, March 15, 2004 3:23 PM > To: [EMAIL PROTECTED] > Subject: RE: schema validation > > > In my case getColumnNumber returns always the bytes of the > "node" in my xml-File, not the position where the error > occurs. I also u

Re: schema validation

2004-03-15 Thread Kai-Uwe Schmidt
My problem is, that i am not sure if i have done everything the right way. I am still not sure that this was/is a missing feature. I still think i have configured the parse kinda the wrong way. I was only able to spend 3-4 hours on this. I cant deliver a patch because i cant test this one differ

RE: schema validation

2004-03-15 Thread Kai-Uwe Schmidt
gt; > If in your case these methods deliver nothing I think there's a bug in the > implementation > > Hiran > > PS: Using Xerces C++ 2.4.0 on VC++ 6 > > > -Original Message- > > From: Kai-Uwe Schmidt [mailto:[EMAIL PROTECTED] > &g

Re: schema validation

2004-03-15 Thread Alberto Massari
At 14.56 15/03/2004 +0100, you wrote: Can anyone help/comment this ? From your message it looks like you solved the problem; if you want to ask for this enhancement to be merged with the official code base, please file a bug in Bugzilla, adding a patch if possible Alberto regards Kai-Uwe Am Do

RE: schema validation

2004-03-15 Thread Hiran.Chaudhuri
deliver nothing I think there's a bug in the implementation Hiran PS: Using Xerces C++ 2.4.0 on VC++ 6 > -Original Message- > From: Kai-Uwe Schmidt [mailto:[EMAIL PROTECTED] > Sent: Monday, March 15, 2004 2:57 PM > To: [EMAIL PROTECTED] > Subject: R

Re: schema validation

2004-03-15 Thread Kai-Uwe Schmidt
Can anyone help/comment this ? regards Kai-Uwe Am Do 11.03.2004 20:36, Kai-Uwe Schmidt <[EMAIL PROTECTED]> schrieb: > Hi folks, > > i am trying to parse a xml with a schema included. I have trouble with the > informations i get in my errorhandler. > i am missing the attribute name in the cas

schema validation

2004-03-11 Thread Kai-Uwe Schmidt
Hi folks, i am trying to parse a xml with a schema included. I have trouble with the informations i get in my errorhandler. i am missing the attribute name in the case the xml doesnt conform to the xsd. The SAXParseException doesnt contain any data about the position of the attribute which c

RE: Not able to make XercesDOMParser Schema Validation working

2004-03-03 Thread Borislav Stoyanov
ser->setErrorHandler(myErrorHandler); I can successfully validate against the schema. Best regards, -Original Message- From: Alberto Massari [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 2:30 PM To: [EMAIL PROTECTED] Subject: RE: Not able to make XercesDOMParser Schema Vali

RE: Not able to make XercesDOMParser Schema Validation working

2004-02-27 Thread Alberto Massari
red? Could you please post the complete XML and XSD file? Otherwise this will become a long thread leading nowhere... Alberto -Original Message- From: Alberto Massari [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 6:47 PM To: [EMAIL PROTECTED] Subject: RE: Not able to make Xer

Not able to make XercesDOMParser Schema Validation working

2004-02-26 Thread Borislav Stoyanov
Hi, I have been trying to validate an XML document with a schema grammar that I pre-parse before parsing the main document. My schema grammar parses successfully, but I've not been able to apply it to the parsing of the target XML document. Help! I am using the XercesDOMParser APIs as follows:

RE: Not able to make XercesDOMParser Schema Validation working

2004-02-26 Thread Borislav Stoyanov
I forgot, Im using Xeces 2.1.0. -Original Message- From: Borislav Stoyanov Sent: Thursday, February 26, 2004 6:03 PM To: '[EMAIL PROTECTED]' Subject: Not able to make XercesDOMParser Schema Validation working Hi, I have been trying to validate an XML document with a schema gr

RE: Not able to make XercesDOMParser Schema Validation working

2004-02-26 Thread Alberto Massari
At 18.06 26/02/2004 +0100, Borislav Stoyanov wrote: I forgot, Im using Xeces 2.1.0. Have you added setDoNamespace(true)? without namespace, no schema validation can be done. Alberto -Original Message- From: Borislav Stoyanov Sent: Thursday, February 26, 2004 6:03 PM To: '[

RE: Not able to make XercesDOMParser Schema Validation working

2004-02-26 Thread Borislav Stoyanov
10nx I tried this but it didnt help. I cannt find any working examples in Inet either. -Original Message- From: Alberto Massari [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 6:15 PM To: [EMAIL PROTECTED] Subject: RE: Not able to make XercesDOMParser Schema Validation working

RE: Not able to make XercesDOMParser Schema Validation working

2004-02-26 Thread Alberto Massari
on of the schema)? Alberto -Original Message- From: Alberto Massari [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 6:15 PM To: [EMAIL PROTECTED] Subject: RE: Not able to make XercesDOMParser Schema Validation working At 18.06 26/02/2004 +0100, Borislav Stoyanov wrote: >I for

RE: Not able to make XercesDOMParser Schema Validation working

2004-02-26 Thread Borislav Stoyanov
is be also considered? (maybe afterthat it will work) -Original Message- From: Alberto Massari [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 6:47 PM To: [EMAIL PROTECTED] Subject: RE: Not able to make XercesDOMParser Schema Validation working At 18.42 26/02/2004 +0100, Borislav Stoy

Re: Schema validation using Xerces-C++ version 1.6.0?

2004-02-06 Thread Neil Graham
[EMAIL PROTECTED] talone.com>cc: Subject: Schema validation using Xer

Schema validation using Xerces-C++ version 1.6.0?

2004-02-06 Thread Saraogi, Vikas
Title: Schema validation using Xerces-C++ version 1.6.0? Hi y'all, I am trying to do validation of xml files against their schema using the Xerces library. I am expecting to get an exception while calling DOMParser::parse method when the xml file is invalid, i.e. it doesn't conf

Schema validation

2003-11-26 Thread Andrea Bernicchia
I have tried to use setExternalNoNamespaceSchemaLocation()/setExternalSchemaLocation() DOMParser methods, but they seems to work differently.   The first one seems not working, by comparison with the setExternalSchemaLocation(), which does.   When I set a different schema location using se

Re: Schema validation error reporting

2003-09-11 Thread elliot . rapp
[EMAIL PROTECTED] <[EMAIL PROTECTED]cc: ail.com> Subject: Re: Schema v

Re: Schema validation error reporting

2003-09-11 Thread Jeffrey Rodriguez
to MS parser behavior but it would be worth it trying it. Regards, Jeffrey Rodriguez Silicon Valley From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Schema validation error reporting Date: Thu, 11 Sep 2003 10:24:13 -0500 Ok, this topi

Re: Schema validation error reporting

2003-09-11 Thread Jeffrey Rodriguez
would/should follow for processor implementors. When talking about XML processing errors you could think of the following types of errors: + XML parse operations. + Well formedness checks that the XML parser would do. + Validation errors. - DTD validation errors -Schema validation e

Schema validation error reporting

2003-09-11 Thread elliot . rapp
Ok, this topic has probably been dealt with before, but I can't seem to find itif it already exists, I apologize. When I have an instance document that fails against a given schema, Xerces returns a long list of errors. However, in MSXML I seem to just get the first error returned. Is this

Re: Schema validation & location question with DOM Parser.

2003-02-27 Thread David Sheldon
On Wed, Feb 26, 2003 at 02:26:48PM -0500, Axelle Apvrille (LMC) wrote: > Axelle Apvrille (LMC) wrote: > >Creating a sample XML document to parse > > > > > xmlns:dsi='http://xxx' > > dsi:schemaLocation='http://xxx UpdatePolicy.xsd'> > > /etc/toto.txt > > > > Notic

Re: Schema validation & location question with DOM Parser.

2003-02-26 Thread Axelle Apvrille (LMC)
Hi Neil, Thanks for your reply... but I've not yet managed to get it working. The problem is that the personal-schema.xml sample is using noNamespaceSchemaLocation and not SchemaLocation. In my case, the parser keeps on complaining "The schemaLocation attribute does not contain pairs of values"

Re: Schema validation & location question with DOM Parser.

2003-02-26 Thread Axelle Apvrille (LMC)
Axelle Apvrille (LMC) wrote: [EMAIL PROTECTED] wrote: Hi Axelle, Hi Neil, Thanks for your reply... but I've not yet managed to get it working. The problem is that the personal-schema.xml sample is using noNamespaceSchemaLocation and not SchemaLocation. In my case, the parser keeps on complaini

Re: Schema validation & location question with DOM Parser.

2003-02-26 Thread Axelle Apvrille (LMC)
re to find it. Ideally, the hint should be in the form of an absolute file uri (e.g., file:///home/myDir/my.xsd), but Xerces will try and resolve relative URI's as best it can. For an example of this, see the personal-schema.xml shipped with the samples. You'll also need to be sure to t

Re: Schema validation & location question with DOM Parser.

2003-02-21 Thread neilg
eally, the hint should be in the form of an absolute file uri (e.g., file:///home/myDir/my.xsd), but Xerces will try and resolve relative URI's as best it can. For an example of this, see the personal-schema.xml shipped with the samples. You'll also need to be sure to turn on schema validat

Schema validation & location question with DOM Parser.

2003-02-21 Thread Axelle Apvrille (LMC)
Hi all, I'd like to validate my (small) XML document against my (small ;-)) XML schema. I've seen multiple posts in the archives of this mailing-list + the DOMPrinter sample, but I must admit I am quite confused... I can't get it quite to work, nor do I really understand exactly what's going on.

Re: Schema validation

2003-02-18 Thread Chris Greenlee
Gareth, That occurred to me late last night, and was indeed my problem. However, I would have thought that xerces would throw a fatal error if the schema file it was being told to validate against did not exist. That silent failure confused me into thinking it wasn't attempting to validate at al

Re: Schema validation

2003-02-18 Thread Gareth Reakes
Hi, have you overridden the methods to report errors in your handler? Check out SAX2Print for an example. Gareth On Mon, 17 Feb 2003, Chris Greenlee wrote: > Greetings! > > I'm attempting to validate a very small XML document against a very small > schema, without specifying it inter

Schema validation

2003-02-17 Thread Chris Greenlee
Greetings! I'm attempting to validate a very small XML document against a very small schema, without specifying it internally. Here's my code: ---begin--- MyHandler handler; SAX2XMLReader* reader = XMLReaderFactory::createXMLReader(); XMLCh *propertyValue = XMLString::transcode("myschema

DO NOT REPLY [Bug 14000] - Incorrect Schema Validation Failure When Redefining Complex Type with Simple Content

2003-01-13 Thread bugzilla
gzilla/show_bug.cgi?id=14000 Incorrect Schema Validation Failure When Redefining Complex Type with Simple Content --- Additional Comments From [EMAIL PROTECTED] 2003-01-13 17:48 --- Would you please provide a sample schema and xml do

DO NOT REPLY [Bug 15371] - Requesting schema validation by DOMBuilder is non-obvious

2003-01-10 Thread bugzilla
gzilla/show_bug.cgi?id=15371 Requesting schema validation by DOMBuilder is non-obvious [EMAIL PROTECTED] changed: What|Removed |Added Status|VERIFIED|

DO NOT REPLY [Bug 15371] - Requesting schema validation by DOMBuilder is non-obvious

2003-01-09 Thread bugzilla
gzilla/show_bug.cgi?id=15371 Requesting schema validation by DOMBuilder is non-obvious [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|VE

Schema validation

2003-01-09 Thread Shtilkind, Igor
Hi all, I am trying to redirect validation to external DTD ot XSD file depends on the input. In case of schema parser still expects DTD. What am I doing wrong in the following code? /

DO NOT REPLY [Bug 15371] - Requesting schema validation by DOMBuilder is non-obvious

2003-01-09 Thread bugzilla
gzilla/show_bug.cgi?id=15371 Requesting schema validation by DOMBuilder is non-obvious [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RE

Schema-validation bug

2002-12-19 Thread Keith L. Musser
We have discovered an inconsistency between "Xerces-Java 2.0.0" and "Xerces C++ 2.1" with regard to schema validation. I believe "Xerces-Java 2.0.0" is handling this correctly, but I don't claim expertise in the intricacies of XML schema, so I'll l

DO NOT REPLY [Bug 15371] New: - Requesting schema validation by DOMBuilder is non-obvious

2002-12-13 Thread bugzilla
gzilla/show_bug.cgi?id=15371 Requesting schema validation by DOMBuilder is non-obvious Summary: Requesting schema validation by DOMBuilder is non- obvious Product: Xerces-C++ Version: 2.1.0 Platform: Other OS/Version:

Re: Schema validation with large maxOccurs values

2002-11-12 Thread Tinny Ng
t;Gordon, M Scott" <[EMAIL PROTECTED]> Sent: Monday, November 11, 2002 8:59 AM Subject: Schema validation with large maxOccurs values > > Hello, > > I've reposted this message because I did not get a reply stating whether the > large maxOccurs issue will ever be re

Schema validation with large maxOccurs values

2002-11-11 Thread Gordon, M Scott
Hello, I've reposted this message because I did not get a reply stating whether the large maxOccurs issue will ever be resolved. One of the limitations stated in the schema programming page for Xerces C++ states ... * Due to the way in which the pars

RE: Schema validation with large maxOccurs values

2002-10-29 Thread Alfredo Muñoz
- From: Gordon, M Scott [mailto:m.gordon@;baesystems.com] Sent: Martes, 29 de Octubre de 2002 02:40 p.m. To: '[EMAIL PROTECTED]' Cc: Gordon, M Scott Subject: Schema validation with large maxOccurs values One of the limitations stated in the schema programming page for Xerces

Schema validation with large maxOccurs values

2002-10-29 Thread Gordon, M Scott
One of the limitations stated in the schema programming page for Xerces C++ states ... http://xml.apache.org/xerces-c/schema.html * Due to the way in which the parser constructs content models for elements with complex content, specifying large values for the minOccurs or maxOccurs attribute

DO NOT REPLY [Bug 14000] New: - Incorrect Schema Validation Failure When Redefining Complex Type with Simple Content

2002-10-27 Thread bugzilla
gzilla/show_bug.cgi?id=14000 Incorrect Schema Validation Failure When Redefining Complex Type with Simple Content Summary: Incorrect Schema Validation Failure When Redefining Complex Type with Simple Content Product: Xerces-C++ Version:

DO NOT REPLY [Bug 9104] - prefixes dissapearing when schema validation turned on

2002-10-16 Thread bugzilla
gzilla/show_bug.cgi?id=9104 prefixes dissapearing when schema validation turned on [EMAIL PROTECTED] changed: What|Removed |Added Status|VERIFIED|

DO NOT REPLY [Bug 9104] - prefixes dissapearing when schema validation turned on

2002-10-16 Thread bugzilla
gzilla/show_bug.cgi?id=9104 prefixes dissapearing when schema validation turned on [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|VE

Re: Schema validation of DOM Document

2002-09-19 Thread Gareth Reakes
Hi, no, its not currently possible. Gareth On Wed, 18 Sep 2002, Andreas Oesterer wrote: > Is it possible to validate a DOMDocument against a XMl > schema? > > The scenario I'm dealing with is a user defined script > that creates a DOMDocument. Before storing that > document, I want to

Schema validation of DOM Document

2002-09-18 Thread Andreas Oesterer
Is it possible to validate a DOMDocument against a XMl schema? The scenario I'm dealing with is a user defined script that creates a DOMDocument. Before storing that document, I want to validate the contents against a schema. I implemented a solution using the following steps: 1. Serialize the

DO NOT REPLY [Bug 9104] - prefixes dissapearing when schema validation turned on

2002-05-29 Thread bugzilla
gzilla/show_bug.cgi?id=9104 prefixes dissapearing when schema validation turned on [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RE

DO NOT REPLY [Bug 9104] New: - prefixes dissapearing when schema validation turned on

2002-05-15 Thread bugzilla
gzilla/show_bug.cgi?id=9104 prefixes dissapearing when schema validation turned on Summary: prefixes dissapearing when schema validation turned on Product: Xerces-C++ Version: 1.7.0 Platform: Other OS/Version: Other Status: NEW Se

Re: question on XML schema validation, sample files attached

2002-05-07 Thread Bing-Bing Chai
like. Better post > your xml and schema files for further investigation. > > Tinny > - Original Message - > From: "Bing-Bing Chai" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, April 30, 2002 6:24 PM > Subject: question

RE: Schema validation time >25 secs

2002-05-07 Thread Carlo Agopian
I'm using version 1.6, I will try version 1.7 and see how much it will speed it up. Thanks. Carlo [EMAIL PROTECTED] -Original Message- From: Tinny Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 9:21 AM To: [EMAIL PROTECTED] Subject: Re: Schema valid

Re: Schema validation time >25 secs

2002-05-07 Thread Tinny Ng
/schema.html for limitations. Tinny - Original Message - From: "Carlo Agopian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 07, 2002 11:16 AM Subject: RE: Schema validation time >25 secs > No, I don't have full schema

RE: Schema validation time >25 secs

2002-05-07 Thread Carlo Agopian
pace" entry. Carlo [EMAIL PROTECTED] -Original Message- From: Khaled Noaman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 8:37 AM To: [EMAIL PROTECTED] Subject: Re: Schema validation time >25 secs It would be helpful if you could post your schema, so we can have

Re: question on XML schema validation

2002-05-07 Thread Tinny Ng
<[EMAIL PROTECTED]> Sent: Tuesday, April 30, 2002 6:24 PM Subject: question on XML schema validation > Hi, > > I was testing the XML Schema validation functionalities with the sample program DOMPrint (Xerces 1.7). I ran it with a > modified XML file personal-schema.xml. And got t

  1   2   >