RE: simple question.

2001-04-27 Thread Alfredo Munoz
Thanks Doug. What If I am using ONLY the SAX Interface ? There is a way to get it using ONLY the Interface provided by SAX (basically the question is there is a callback associated to a DOCTYPE declaration)? Thanks again Alfredo -Original Message- From: Doug Brower [mailto:[EMAIL PROTEC

Re: cleanup etc.

2001-04-27 Thread Andy Heninger
The key to being able to successfully call Initialize() on the Xerces library is that all of the static data associated with the library must be zeroed. This will always be true when a conventional OS first loads a library. It is not true after terminate(), which is what prevents Initialize from

RE: cleanup etc.

2001-04-27 Thread Bob Vaughn
Kevin - I use Xerces-C on VxWorks and it seems the obvious solution is to do what I do... never call Terminate(). If indeed you think you may want to later (before a reboot) use Xerces, then don't call Terminate(). It's not all that difficult to make sure that Initialize() is only invoked one t

Problem with Win32TransService

2001-04-27 Thread Andrew Kelly
We recently had a client that uses our product complain that their server wasn't coming up. Upon further examination it was determined that in Win32TransService::Win32TransService() if this constructor can't find an "InternetEncoding" for any codepage that it finds in the registry it just panics.

cleanup etc.

2001-04-27 Thread Kevin Livingston
Hello all, I was able to further my quest in obtaining an implementation of Xerces-C for VxWorks (thanks to Johannes at CERN) I have downloaded CERN's port and things seem to be functioning fairly well. Thanks again Johannes. Interestingly enough, as many programers new to Xerces have found o

Re: How to change the name of an element?

2001-04-27 Thread Joseph_Kesselman
Replace the element with another having the desired name. Sorry, but the DOM node's name is _deliberately_ not a mutable value, for many reasons having to do with everything from document integrety to object-system integrety. -

How to change the name of an element?

2001-04-27 Thread Peter Allen
Hello all, I need to change into Any ideas on what the easiest way to do this is? I see there is no setNodeName(). thanks, -Pete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

RE: simple question.

2001-04-27 Thread Doug Brower
Hello Alfredo: Here's how you can get the name of the DTD, that is, the name immediately following the DOCTYPE keyword in an XML source document: DOMString GetDoctypeName( const DOM_Document& doc ) { DOM_DocumentType doctype = doc.getDoctype(); if( doctype.isNull() )

Re: PLEASE HELP: SAX parser errors on validation when ValScheme=V al_Never?????

2001-04-27 Thread Peter A. Volchek
> "Peter A. Volchek" <[EMAIL PROTECTED]> writes: > > > But, why not provide the (let name it advanced api ) additional feature, > > which allows to suppress it? (especially, when so many people require it). > > At least, it may be put in the protected area of a parser, so that it might > > be us

Re: PLEASE HELP: SAX parser errors on validation when ValScheme=V al_Never?????

2001-04-27 Thread Jason E. Stewart
"Peter A. Volchek" <[EMAIL PROTECTED]> writes: > But, why not provide the (let name it advanced api ) additional feature, > which allows to suppress it? (especially, when so many people require it). > At least, it may be put in the protected area of a parser, so that it might > be used, only by t

Re: namespaces and Valid XML

2001-04-27 Thread Boris Tarasyuk
Same way I can say that not everything clear with Xerces. When validating parser meets attribute, which is not declared in DTD, it has to report error. And Xerces does report. But if attribute starts from 'xmlns:' Xerces does not report error. So, if we agree that namespaces and DTDs are not reall

Re: PLEASE HELP: SAX parser errors on validation when ValScheme=Val_Never?????

2001-04-27 Thread Perry A. Caro
Dean Roddey wrote: > > As a practical matter, DTDs are not just about validation. They cause a lot > other stuff to happen. In most cases, people who are not validating still > very much want it to be processed and want to know if anything goes wrong. > So don't get too tied up on DTDs being just

Re: PLEASE HELP: SAX parser errors on validation when ValScheme=Val_Never?????

2001-04-27 Thread Dean Roddey
> DTDs can indeed "cause a lot of other stuff to happen" but > non-validating parsers can only be relied upon to make that > stuff happen using the internal subset. Defaulting attributes, > expanding entities, etc. are all vital things but if you are > using a non-validating parser, your definiti

Re: namespaces and Valid XML

2001-04-27 Thread Dean Roddey
> Thanks Dean and Joseph for the answers. > That exactly what I suspected, but would like > to get third party's opinion. > I don't think that this is bug in MS Parser (successful > validation of element with namespace prefix if it declared in DTD > without namespace prefix). Rather it's feature.

Re: PLEASE HELP: SAX parser errors on validation when ValScheme=V al_Never?????

2001-04-27 Thread Peter A. Volchek
The parser should conform to xml rec. No one argues with this statement. In its "default" state it raises fatal error if dtd is missing. That is great. But, why not provide the (let name it advanced api ) additional feature, which allows to suppress it? (especially, when so many people require it)

simple question.

2001-04-27 Thread Alfredo Munoz
How I get the DOCTYPE and the name of the external DTD in use? In the example below: .. I need to pass to my application both , the name after !DOCTYPE and the DTD referenced after SYSTEM. Many thanks in advance Alfredo ---

Re: Xerces_c support for schema validation

2001-04-27 Thread Joanne Bogart
Tinny Ng wrote: > > Or see http://xml.apache.org/xerces-c/schema.html > > Tinny > How about putting an appropriate question and link to this in the FAQ? Thanks (and thanks to you and everyone else who has worked on xerces-c for a fine product). Joanne -

Re: Xerces_c support for schema validation

2001-04-27 Thread Tinny Ng
Or see http://xml.apache.org/xerces-c/schema.html Tinny Jesse Pelton wrote: It's under development right now. For details, see http://marc.theaimsgroup.com/?l=xerces-c-dev&m=98682228707572&w=2 - To unsubscribe, e-mail: [EMAIL PRO

Re: PLEASE HELP: SAX parser errors on validation when ValScheme=V al_Never?????

2001-04-27 Thread Jason E. Stewart
It seems that this discussion is one best addressed by the XML spec community and not here. The real question is should a non-validating parse raise a fatal error if it cannot locate the DTD specified in the DOCTYPE? Currently, this seems to be an implementation issue. Xerces does it one way and o

Re: Converting DOM Tree to a string

2001-04-27 Thread Rajesh Kommineni
Sorry about this. I went thru FAQ before sending this email. I wanted to know whether any body has added any extensions to Xerces and also whether there is any better way to stringify DOM_Node (when compared to DOMPrint example). I clicked on send button accidentally before writing the message

RE: Xerces_c support for schema validation

2001-04-27 Thread Jesse Pelton
It's under development right now. For details, see http://marc.theaimsgroup.com/?l=xerces-c-dev&m=98682228707572&w=2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: namespaces and Valid XML

2001-04-27 Thread Boris Tarasyuk
Probably they do 'nonstandard validation'. But you don't need turn on it explicitly. IE can recognize it. This is example: 1. content text Validation correct. Namespace is declared 2. content text Validation failed. Namespace is not declared > > Sorry, but it ex

Xerces_c support for schema validation

2001-04-27 Thread Michael Clarke
Hi, I've recently downloaded the xerces for C (v1.4) XML parser. It doesnt seem to understand schema and in particular the W3C XML schema. I noticed that the Java version explictly mentions support for schema (presumably the W3C one as well), anyone know when the C version will adopt this support

Re: namespaces and Valid XML

2001-04-27 Thread Joseph_Kesselman
>I don't think that this is bug in MS Parser (successful >validation of element with namespace prefix if it declared in DTD >without namespace prefix). Rather it's feature. Sorry, but it explicitly violates the XML spec's definition of validity, so if they're claiming to be a validating XML pars

RE: PLEASE HELP: SAX parser errors on validation when ValScheme=V al_Never?????

2001-04-27 Thread Bil Mason
DTDs can indeed "cause a lot of other stuff to happen" but non-validating parsers can only be relied upon to make that stuff happen using the internal subset. Defaulting attributes, expanding entities, etc. are all vital things but if you are using a non-validating parser, your definitions HAVE t

Re: namespaces and Valid XML

2001-04-27 Thread Boris Tarasyuk
Thanks Dean and Joseph for the answers. That exactly what I suspected, but would like to get third party's opinion. I don't think that this is bug in MS Parser (successful validation of element with namespace prefix if it declared in DTD without namespace prefix). Rather it's feature. MS likes cre

Re: Verifying DTD compliance in memory

2001-04-27 Thread Joseph_Kesselman
>It would be *very* useful to have some kind of 'parser' that, rather than a >stream, takes a DOM_Document and checks that against the DTD, updating the >document's ID map and what have you. Earlier versions of Xerces had a nonstandard "revalidating parser" API which let you do this. I don't thi

Re: namespaces and Valid XML

2001-04-27 Thread Joseph_Kesselman
>I've got question about relationship between namespaces and Valid XML. >... >I didn't find clear explanations at w3c how this suppose to work Mostly because the W3C made no real effort to design namespaces so they "play well" with DTD validation. An assumption was made that if you wanted to val

RE: gcc + Solaris

2001-04-27 Thread Jesse Pelton
There's another archive at http://marc.theaimsgroup.com/?l=xerces-c-dev&r=1&w=2. -Original Message- From: John L. Fjellstad [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 8:16 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: gcc + Solaris At 06:31 PM 4/26/2001 -0400,

RE: PLEASE HELP: SAX parser errors on validation when ValScheme=V al_Never?????

2001-04-27 Thread Prior, Chris
I totally agree with this point. I'm not into RECs all that much but surely the parse should be allowed to occur? I know I mentioned it before but the following illustrates how I got the parser to do the parse anyway: Original xml doc: . . . Frig (start parsing from) . . . **The point i

Re: PLEASE HELP: SAX parser errors on validation when ValScheme=V al_Never?????

2001-04-27 Thread Peter A. Volchek
If I know exactly, that referred DTD does not contain niether any entities not default attribute declarations (end even if it does, but it is not important for processing xml for my suits), and I want just parse xml, not to validate it, I should have an ability to suppress the exception to be thro

Verifying DTD compliance in memory

2001-04-27 Thread Evert Haasdijk
Hi all, When modifying or creating a DOM_Document in memory, there seems to be only one way to check that the results are valid in terms of the DTD. Also, a lot of information is generated during the parse of a stream that cannot be updated through the DOM (e.g. DOM_Document::getElementById() onl

RE: Converting DOM Tree to a string

2001-04-27 Thread Evert Haasdijk
There is no serialization in xerces-c, so everybody ends up modifying the DOMPrint example. Me, too, and you can have it. No warranties, mileage may vary and so on. Good luck, e DOMSerializer.cpp DOMSerializer.hpp - To unsubs