Re: Validating XML docs against schema

2001-02-09 Thread Vanessa D Johnson
Hi Neil : In Java, I want to be able to validate an XML document that I parse against my own schema. Is it sufficient to setFeature() for validation = true on the DOM Parser to validate an XML file against a schema like in DOMCount? I need to be able to return errors if an attribute or element i

Re: Validating XML docs against schema

2001-02-09 Thread neilg
Hi Vanessa, I'm not quite sure what you're after so I'll give you an idea of what Xerces has to offer: There are various small sample programs shipped with Xerces (like dom.DOMCount and sax.SAXCount, both found in the xercesSamples.jar file) which you can use to determine if a given document co

Re: Building docs from cvs?

2001-02-09 Thread neilg
Hi Jeff and Norman, Actually Dirk Verbeecke (sp?) posted a patch in this regard a couple of weeks back that I have definitely not forgotten about but haven't had time to look in to... Hopefully next week. At any rate, I hacked around this problem when I put together the last XML4J release and

Validating XML docs against schema

2001-02-09 Thread Vanessa D Johnson
Hello: Is there a class in the xerces API that enables one to validate an XML document against a particular schema? Thanks, Vanessa Johnson

Re: getOwnerElement for cloned attributes

2001-02-09 Thread Arnaud Le Hors
Sebastien Ponce wrote: > > It seems that a problem appears when cloning an element containing > attributes. The element an attributes themselves are correctly cloned but > the resulting attributes return null when calling getOwnerElement, instead > of the new element. Which version of Xerces are

Re: Building docs from cvs?

2001-02-09 Thread Jeffrey Rodriguez
Hi Norman, This is a bug with stylebook. As part of the process of building a source distribution Xerces builds the distribution documentation using the stylebook Apache package. Stylebook has a bug that manifest in Unix Systems (Solaris, Linux, etc) where it fails unzipping some of the resourc

Re: Bugzilla components created

2001-02-09 Thread Arnaud Le Hors
> Ted Leung wrote: > > I've created all the components for bugzilla, per the vote in > xerces-j-dev. > > Please start using bugzilla to report and repair bugs. > > The Apache Bugzilla is available at http://nagoya.apache.org/bugzilla Great, but the official page http://xml.apache.org/bugs/ stil

Re: base64 encoded content

2001-02-09 Thread Jeffrey Rodriguez
Hi Holger, This is normal SAX behavior, look at the SAX specification. It says clearly that the character content may be return in through multiple calls.

Re: Xerces 1.3.0 and schemas

2001-02-09 Thread Ian Roberts
On Fri, 9 Feb 2001, Elena Litani wrote: > Hi, Umesh, > > Umesh Subramanian wrote: > > > > Elena: > > Thanks for your reply. I think it would be a very nice feature if older > > versions > > of the schemas remain supported for some period of time before > > decommissioning > > them. > > Unfort

Re: Xerces 1.3.0 and schemas

2001-02-09 Thread Elena Litani
Hi, Umesh, Umesh Subramanian wrote: > > Elena: > Thanks for your reply. I think it would be a very nice feature if older > versions > of the schemas remain supported for some period of time before decommissioning > them. Unfortunately, it is not possible. Xerces provides standards-based sol-ns

getOwnerElement for cloned attributes

2001-02-09 Thread Sebastien Ponce
It seems that a problem appears when cloning an element containing attributes. The element an attributes themselves are correctly cloned but the resulting attributes return null when calling getOwnerElement, instead of the new element. This is due to the fact that the implementation of the cloneNo

Re: Xerces 1.3.0 and schemas

2001-02-09 Thread Umesh Subramanian
Elena: Thanks for your reply. I think it would be a very nice feature if older versions of the schemas remain supported for some period of time before decommissioning them. I would like to support validation of XML messsages using schemas confirming to different versions, and ideally the parser co

DOM-whitespace not ignored

2001-02-09 Thread Son To
OK I've tried what you suggested I included a DTD and did parser.setIncludeIgnorableWhitespace(false); but it still doesnt ignore all whitespaces (maybe I'm writing the DTD incorrectly?) here is the xml doc: Jo Blo 3134 Broad Street Philadelphia

DOM Level 3 Core (Xerces-J)

2001-02-09 Thread Elena Litani
Hi, Last week I've implemented some DOM Level 3 features (http://www.w3.org/TR/DOM-Level-3-Core/). NOTE: This implementation is experimental. DOM Level 3 is in working draft stage - it is still possible that changes in the specification occur. Added features are: EntityImpl *encoding of ty

Re: Xerces 1.3.0 and schemas

2001-02-09 Thread Elena Litani
Hi, Umesh, > > I am having problems validating xml documents against schemas defined using > the 1999 spec. I am using Xerces 1.3.0. Is the support for the older > versions of schemas discontinued? Yes. We upgraded schema support to the schema CR draft at a similar level to that which had exist

Re: creating a DTD

2001-02-09 Thread Elena Litani
Hi, Raphael > > Hello, > > how can I generate a DTD with xerces? I have a DOM of my Document and want > to create a DTD for it. This feature is not supported. Editing of DTDs and Schema is discussed in DOM L3 WD, however, we don't plan to implement it any time soon. Hope it helps, Elena

Re: Problem stopping SAXParser parse

2001-02-09 Thread Elena Litani
Hi, Rubén > I have a problem with the SAXParser. I am doing an application that > processes a XML document using a SAXParser. I have done a ContentHandler > that implements the startElement,endElement, methods. On one moment of the > process I want to stop the parse of the document because the da

Re: getElementsByTagName

2001-02-09 Thread Elena Litani
"Jian, David" wrote: > > Hi, > I am using org.w3c.dom interface method getElementsByTagName("tagname") from > xerces-1_2_3, is this tagname can be tag name of root element? Yes. Elena

RE: basics

2001-02-09 Thread Andrew Fawcett
Perhaps you will be interested in this http://castor.exolab.org/sourcegen.html -Original Message- From: Scott Coleman [mailto:[EMAIL PROTECTED] Sent: 09 February 2001 12:52 To: xerces-j-dev@xml.apache.org Subject: Re: basics The basics I am new to this xml schema stuff, and i wish

Re: basics

2001-02-09 Thread Scott Coleman
The basics I am new to this xml schema stuff, and i wish to parse a schema and use it to drive the generation of source code. To enable me to do this i need to know if a node is a simple type or complex type. Can someone tell how this is possible . Many Thanks

Building docs from cvs?

2001-02-09 Thread Norman Walsh
Using a CVS snapshot that I updated this morning, I get a ZipException when I attempt to build the docs. Anyone else have this trouble? Is this a problem in CVS or on my end? Building docs for xerces-J 1.3.0 ... [java] The args attribute is deprecated. Please use nested arg elements. [j

Re: base64 encoded content

2001-02-09 Thread Holger . Juschkewitz
Thanks Jeffrey, but do you or anyone else have any idea about my second question? I still have no idea why the parser splits my content into three character parts... sorry if this is a stupid question, but I have no explaination for it. Holger Hi Holger, I will take a look at this, it is quit

Re: How to create a validating SAXParser?

2001-02-09 Thread Ian Roberts
On Thu, 8 Feb 2001, Brad O'Hearne wrote: > Hello all, > > Got an easy question for you. In SAX2, I want to manipulate the features > and properties of the parser that I create (like making an instance of a > SAXParser a validating parser). Is there anywhere that I can find a global > listing of

Running DOMParser as servlet.

2001-02-09 Thread Peter Tornberg
Hi there, I've been trying to run a DOMParser as a servlet with Apache/Tomcat and have run into some problems. The behavior is different from running it standalone. Standalone, the parser verified the files I want, no problems. First: When setting validation, namespaces and schemasupport to tru

Re: On-the-fly validation for creating XML editors?

2001-02-09 Thread Catharina Ibrahim
Hi David, Looks like we have the same problem. Currently we are discussing the matter under the subject 'Real-time Validation'. Take a look :) cath --- David Markley <[EMAIL PROTECTED]> wrote: > Can anyone point me towards how Xerces could be used > for "on-the-fly validation for creating XML >

Re: How to get a String with the XML representation of an element

2001-02-09 Thread Jeffrey Rodriguez
Hi Christians, Yes, there is another way, you could use the serializer here is an example: import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import org.w3c.dom.Node; import org.apache.xerces.parsers.DOMParser; import org.xml.sax.SAXException; import org.apache.xm

How to get a String with the XML representation of an element

2001-02-09 Thread Christians Izquierdo
Hi!   Is there any API call to get the String representation of an XML element?   For example, I have:               I'm using a DOM Parser so I have an object pointing to the element Node2 and I would like to get the following S

Re: Call for Xerces 1.3.1 Release Plan

2001-02-09 Thread lmartin
Hi there, I just realized that some mail I attempted to post re: future work for xerces 1 earlier this week bounced back - sigh. In any case, I would like to see us put together a rollout for remaining schema support, among other things (this will probably need to be done across a few xerces rele

On-the-fly validation for creating XML editors?

2001-02-09 Thread David Markley
Can anyone point me towards how Xerces could be used for "on-the-fly validation for creating XML editors?" I've been using Xerces for some time to successfully parse and manipulate DOMs. I can't see how this might be used for on-the-fly validation. I'd really like to find out if Xerces 2 would

How to create a validating SAXParser?

2001-02-09 Thread Brad O'Hearne
Hello all, Got an easy question for you. In SAX2, I want to manipulate the features and properties of the parser that I create (like making an instance of a SAXParser a validating parser). Is there anywhere that I can find a global listing of all of the supported features and/or properties that