xerces, schema parsing, now what?

2001-02-22 Thread Joel Riedesel
Newbie alert! It seems that various 'things' are using XML Schema inside them. WSDL for example. WSDL is it's own thing, but I want to parse out the schema information inside of it. Xerces parses (& validates?) XML Schema apparently but then do I still have to manually parse out the schema data

Re: Problem with Xalan J2 transformation

2001-02-22 Thread Dane Foster
You were right. I browsed through the JARS in my classpath and found that my ServletEngine's Jar file has the DOM 1 interface classes. Thanx Dane Foster Equity Technology Group, Inc http://www.equitytg.com. 954.360.9800 - Original Message - From: "Arnaud Le Hors" <[EMAIL PROTECTED]> To:

Re: Problem with Xalan J2 transformation

2001-02-22 Thread Arnaud Le Hors
Dane Foster wrote: > > I'm using the latest and greatest version of XercesJ and XalanJ Even though, if you happen to have a jar, which contains the DOM Level 1 interfaces, first on your classpath you'll get the error you're reporting. -- Arnaud Le Hors - IBM Cupertino, XML Strategy Group

Re: Using xml schema

2001-02-22 Thread Alex Neth
I don't use the DOMParser class.  What is the purpose of this class?  I use the following method to parse the document:    DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();    docFactory.setNamespaceAware(true);    docFactory.setValidating(true);    try {      docBuild

RE: AW: Validation ?

2001-02-22 Thread Michael Duffy
Sam: I wrote a class that implements ErrorHandler. Each method just writes out details for warning, error, and fatal error cases as the interface demands. I instantiated an instance and passed it to my parser's setErrorHandler() method. Still the bad document that I gave it parsed and validated

Re: Re: win-1251 encoding support

2001-02-22 Thread neilg
Hello, Try "CP1251" (nlote the case!) We had a similar problem with CP1252 which I fixed a couple of weeks ago; if this doesn't work for you let me know (and please send an example) and I'll try and fix this in the same way. Cheers, Neil Neil Graham XML Parser Development IBM Toronto Lab Phon

Re: Re: win-1251 encoding support

2001-02-22 Thread olegabr
I've done it and encoding==cp1251 but it is not supported by xerces question: how can I convert my files in one of encodings that is already supported? --- Исходное сообшение --- Дата: 22.02.01, 15:14 От: jean-frederic clere <[EMAIL PROTECTED]> Кому: <[EMAIL PROTECTED]> Тема: Re: win-12

Re: Re: win-1251 encoding support

2001-02-22 Thread olegabr
I've done it and encoding==cp1251 but it is not supported by xerces question: how can I convert my files in one of encodings that is already supported? --- Исходное сообшение --- Дата: 22.02.01, 15:14 От: jean-frederic clere <[EMAIL PROTECTED]> Кому: <[EMAIL PROTECTED]> Тема: Re: win-12

Re: Problem with Xalan J2 transformation

2001-02-22 Thread Dane Foster
I'm using the latest and greatest version of XercesJ and XalanJ Dane Foster Equity Technology Group, Inc http://www.equitytg.com. 954.360.9800 - Original Message - From: "Sam Pullara" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 22, 2001 1:51 PM Subject: RE: Problem

RE: AW: Validation ?

2001-02-22 Thread Michael Duffy
Thank you Sam, I'll try it. --- Sam Pullara <[EMAIL PROTECTED]> wrote: > Are you listening for the error events that are > coming off the ErrorHandler? > Validation errors are not fatal errors and will not > automatically generate > exceptions. You need to listen for the "error" > event from the

RE: AW: Validation ?

2001-02-22 Thread Sam Pullara
Are you listening for the error events that are coming off the ErrorHandler? Validation errors are not fatal errors and will not automatically generate exceptions. You need to listen for the "error" event from the handler. Sam -Original Message- From: Michael Duffy [mailto:[EMAIL PROTECT

Re: AW: Validation ?

2001-02-22 Thread Michael Duffy
This example is lovely, but it doesn't use schemas. Have you got a successful example of that? By "successful", I mean an example that will succeed AND fail to validate. Every document I feed to Xerces with a schema is parsed and "validated" successfully, even those that I believe should fail.

RE: Problem with Xalan J2 transformation

2001-02-22 Thread Sam Pullara
It looks like you have the wrong version of the DOM classes. You should use the ones that come with the distributions. Sam -Original Message- From: Dane Foster [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Problem with Xalan J2 transf

RE: Problem with Xalan J2 transformation

2001-02-22 Thread Lemmin, Harald
Hello Dane, createElementNS is a DOM 2 method that does not existed in DOM 1. Probably there is some DOM1 in your classpath? Good luck, Harald -Original Message- From: Dane Foster [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2001 7:28 PM To: [EMAIL PROTECTED] Subject: Problem w

Re: Problem with Xalan J2 transformation

2001-02-22 Thread Dane Foster
I'm desperate ! Any help would be greatly appreciated. Dane Foster Equity Technology Group, Inc http://www.equitytg.com. 954.360.9800

Problem with Xalan J2 transformation

2001-02-22 Thread Dane Foster
I'm having a serious problem with Xalan-J2/Xerces-J versions 2 and 1.3 respectively. I have embedded Xalan into a Servlet and I'm trying to Transform a XML DOM to an XSL:FO DOM. I have attached a)the servlet code, b)the XSLT document, and c) an instance of the XML Document that would have been cr

AW: Validation ?

2001-02-22 Thread Werner, Sven
Hi! Look At: http://ecerami.com/xerces/ Theres an Example of an validating parser written with xerces! -Ursprüngliche Nachricht- Von: Matt Minyard [mailto:[EMAIL PROTECTED] Gesendet am: Donnerstag, 22. Februar 2001 17:29 An: [EMAIL PROTECTED] Betreff: Valida

Re: Prolems with validating

2001-02-22 Thread Hinrich Boog
Hi Neil, Thanks for the mail. Someone had the same problem today and I took the answer which was following. I didn't know about the 2000/1999 Namespaces before, but that was the solution.. Hinrich [EMAIL PROTECTED] wrote: > > Hi Hinrich, > > Which version of Xerces are you using? There were

Re: Prolems with validating

2001-02-22 Thread neilg
Hi Hinrich, Which version of Xerces are you using? There were considerable changes to schema syntax that Xerces supported between 1.2.3 and 1.3.0, so you've got to make sure the schema you're trying to validate is meant to be validated against the version of Xerces you have. The schema you pos

Re: Getting started ...

2001-02-22 Thread neilg
Hi Martin, You don't need to set your classpath in that if it isn't defined Xerces will build happily. But if it is defined it could get in Xerces's way. Why not try unsetting your classpath completely when you're building Xerces? Cheers, Neil Neil Graham XML Parser Development IBM Toronto

Validation ?

2001-02-22 Thread Matt Minyard
Hi,       I'm having a problem using the validating feature.  I'm using the following code to create the parser and set validiation to true (I thought), but documents with invalid tags are not generating exceptoins.  Any ideas?   dom = new DOMParser(); dom.setFeature("http://xml.org/sax/feat

Help With Schema Support

2001-02-22 Thread Michael Duffy
I'm trying out the schema support in Xerces-1.2.1, but I'm having problems. It appears that Xerces isn't finding the .xsd file. It parses and validates XML files successfully regardless of whether or not they conform to their schema. I've taken the personal-schema.xml and altered one of the ta

Parsing Content Models

2001-02-22 Thread Herrmann, Michael
Hello, I'm looking for a way to get the content model of a DTD-element structured. I hope I can do this with Xerces but didn't find a way so far. I not only want to have the content model of an DTD-element as string as delivered by the method org.xml.sax.ext.DeclHandler.elementDecl(String name, St

Re: schema validation problem (element type element_name must be declared))

2001-02-22 Thread rasco rasco
--- rasco rasco <[EMAIL PROTECTED]> ha scritto: > > --- Grégoire_Pau <[EMAIL PROTECTED]> ha scritto: > Hi, > > > > Maybe this is just a URI problem for XMLSchema and > > XMLSchema-Instance. > > Just check the date ! 2000/10 (XMLSchema CR) > instead > > of 1999 > > > > then, try to use : > > xml

Re: schema validation problem (element type element_name must be declared))

2001-02-22 Thread Ian Roberts
On Thu, 22 Feb 2001, Grégoire Pau wrote: > Hi, > > Maybe this is just a URI problem for XMLSchema and XMLSchema-Instance. > Just check the date ! 2000/10 (XMLSchema CR) instead of 1999 > > then, try to use : > xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"; > instead of : > xmlns:xsd="http://ww

Re: schema validation problem (element type element_name must be declared))

2001-02-22 Thread rasco rasco
--- Grégoire_Pau <[EMAIL PROTECTED]> ha scritto: > Hi, > > Maybe this is just a URI problem for XMLSchema and > XMLSchema-Instance. > Just check the date ! 2000/10 (XMLSchema CR) instead > of 1999 > > then, try to use : > xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"; > instead of : > xmlns:xs

Re: schema validation problem (element type element_name must be declared))

2001-02-22 Thread Grégoire Pau
Hi, Maybe this is just a URI problem for XMLSchema and XMLSchema-Instance. Just check the date ! 2000/10 (XMLSchema CR) instead of 1999 then, try to use : xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"; instead of : xmlns:xsd="http://www.w3.org/1999/XMLSchema"; and : xmlns:xsi="http://www.w3.or

schema validation problem (element type element_name must be declared))

2001-02-22 Thread rasco rasco
hi all, i'm new in this mailing list. I'm using xerces 1.2.3. this is my simple schema http://www.w3.org/1999/XMLSchema"; xmlns:per="http://localhost/~devel/per.xsd"; targetNamespace="http://localhost/~devel/per.xsd";> and this is my very simple xml f

Xerces-j1.3.0 not compiling XPath.Axis

2001-02-22 Thread caroline o'reilly
hello, I am using VisualAge3.5 and have imported the Xerces-J1.3.0 (19Feb). However 2 weird things occur. I have done the usual, remove ibms xml parser classes etc like it says in the faq, and had imported 1.0.0 successfully before. 1. I cannot import the jar file, the import stops after about 3

Prolems with validating

2001-02-22 Thread Hinrich Boog
Hi guys, I have a problem concerning the valitation with XML Schema. I used several example files for validation, here is a Java-Class, a schema file and an XML file that I got from the newsgroup archive. It seems like the program is validating, but for whatever example I use, I get an error for

Re: win-1251 encoding support

2001-02-22 Thread jean-frederic clere
olegabr wrote: > > hi all! > I use xerces-j 1.3.0 with jdk 1.1.8 > and I try to parse xml files which was written under windows-1251 > encoding. And I have an error: unsupported encoding "windows-1251". > So, what can I do to avoid this problem? >

Re: Using xml schema

2001-02-22 Thread Ian Roberts
On Wed, 21 Feb 2001, Alex Neth wrote: > Also, does validation have to be enabled in order to get the parser to load > the schema and apply fixed/default attribute values? To get the parser to do schema validation at all, you need to set the validation, validation/schema and namespaces features (s

Re: win-1251 encoding support

2001-02-22 Thread Mark Diekhans
Andy Clark <[EMAIL PROTECTED]> writes: > olegabr wrote: > > I use xerces-j 1.3.0 with jdk 1.1.8 > > and I try to parse xml files which was written under windows-1251 > > encoding. And I have an error: unsupported encoding "windows-1251". > > So, what can I do to avoid this problem? > > Use the IAN

Re: win-1251 encoding support

2001-02-22 Thread Andy Clark
olegabr wrote: > I use xerces-j 1.3.0 with jdk 1.1.8 > and I try to parse xml files which was written under windows-1251 > encoding. And I have an error: unsupported encoding "windows-1251". > So, what can I do to avoid this problem? Use the IANA encoding name that is equivalent to the Windows enc

Re: DTD DOM-like model

2001-02-22 Thread Andy Clark
Peter Meyer wrote: > Is it possible to revalidate a DOM tree, or can validation only be done at > parsing time from the text input? Many of my problems would be helped if I > could just revalidate the tree without having to print it to a String and > reread it first... There is a RevalidatingDOMPa

Re: Notations in schema (readme!)

2001-02-22 Thread Andy Clark
Ted Leung wrote: > I could have sworn there was a part of XNI for the grammar. I > just tried to go to your pages from xml.apache.org and couldn't > find the link. Is this another website mess up? Currently, I'm only thinking of XNI as the information set communicated by the interfaces. So that'

Re: DTD DOM-like model

2001-02-22 Thread Peter Meyer
Is it possible to revalidate a DOM tree, or can validation only be done at parsing time from the text input? Many of my problems would be helped if I could just revalidate the tree without having to print it to a String and reread it first... pm From: Andy Clark <[EMAIL PROTECTED]> Reply-To

Re: Notations in schema (readme!)

2001-02-22 Thread Ted Leung
I could have sworn there was a part of XNI for the grammar. I just tried to go to your pages from xml.apache.org and couldn't find the link. Is this another website mess up? Ted - Original Message - From: "Andy Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February

win-1251 encoding support

2001-02-22 Thread olegabr
hi all! I use xerces-j 1.3.0 with jdk 1.1.8 and I try to parse xml files which was written under windows-1251 encoding. And I have an error: unsupported encoding "windows-1251". So, what can I do to avoid this problem? olegabr.

Re: DTD DOM-like model

2001-02-22 Thread Andy Clark
"RAHMAN,ABDUR (HP-Sunnyvale,ex1)" wrote: > Please let me know if Apache has a solution for this or there > is a third party solution exist for this matter. No we don't have a solution for this at the time. However, I think that this could be supported in the future by building a DOM document fro

Re: Notations in schema (readme!)

2001-02-22 Thread Andy Clark
Ted Leung wrote: > Andy, what about XNI? Are we covered? I don't think this affects XNI directly since it's grammar information and not part of the streaming information set. -- Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]

Re: DTD DOM-like model

2001-02-22 Thread Peter Meyer
I second that... I would give A LOT for a simple method to have a DOM tree, a schema or DTD and some proposed change to the DOM, and the validator tells me if it is valid before I mess up my DOM. Any solutions out there? :-) PM From: "RAHMAN,ABDUR (HP-Sunnyvale,ex1)" <[EMAIL PROTECTED]> Repl

Using xml schema

2001-02-22 Thread Alex Neth
When using an xml schema, I am getting the error: myNamespace grammar not found and can not figure out why. (myNamespace is actually a url of course) The parser doesn't seem to be even finding the schema file, even though it is in the same directory. I have tried an absolute path as wel

Re: 1.3.1 release plan

2001-02-22 Thread Andy Clark
Brad O'Hearne wrote: > Are the potential "volunteers" you are referring to limited to xerces > committers? If not, I just read through the release plan and I am assuming > the areas where help is needed includes the Post 1.3.1 schema features -- I > assumed that because everything else has a name

Re: Notations in schema (readme!)

2001-02-22 Thread Ted Leung
- Original Message - From: "Arnaud Le Hors" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 21, 2001 4:34 PM Subject: Re: Notations in schema (readme!) > Andy Clark wrote: > > > > Elena Litani wrote: > > >Exposing schema notations via DOM: use doctype.getNotatio

DTD DOM-like model

2001-02-22 Thread RAHMAN,ABDUR (HP-Sunnyvale,ex1)
Hi all, I need some solution regarding DTD parsing. Here's the problem we're facing and I'd appreciate if someone can give me feedback on this: We are building an XML editor. After feeding the DTD, we want a DTD memory model as close to DOM as possible which will present the DTD as a tree format

Re: Notations in schema (readme!)

2001-02-22 Thread Arnaud Le Hors
Andy Clark wrote: > > Elena Litani wrote: > >Exposing schema notations via DOM: use doctype.getNotations(). > >Exposing schema notations via SAX: yourDTDHandler.notationDecl(name, > > But is this really what we're supposed to do for Schema > information? The Schema notation declarations a

Re: Notations in schema (readme!)

2001-02-22 Thread Andy Clark
Elena Litani wrote: >Exposing schema notations via DOM: use doctype.getNotations(). >Exposing schema notations via SAX: yourDTDHandler.notationDecl(name, But is this really what we're supposed to do for Schema information? The Schema notation declarations are not contained within the doct

RE: 1.3.1 release plan

2001-02-22 Thread Brad O'Hearne
Lisa, Are the potential "volunteers" you are referring to limited to xerces committers? If not, I just read through the release plan and I am assuming the areas where help is needed includes the Post 1.3.1 schema features -- I assumed that because everything else has a name beside it. Is that ri