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
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
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
Hello:
Is there a class in the xerces API that enables one to validate an XML
document against a particular schema?
Thanks,
Vanessa Johnson
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
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
> 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
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.
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
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
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
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
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
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
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
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
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
"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
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
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
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
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
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
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
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
>
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
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
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
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
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
30 matches
Mail list logo