Title: dynamically locating .xsd file
Hi,
I used to have a EntityResolver to accept a dtd file name and locate the dtd file in a configurable directory, is there
anything similiar I can do for schema?
thanks in advance,
James
Hi Folks,
The Xerces-J Developer community is pleased to announce new
release of Xerces2 named Xerces 2.0.1. This release is a first bug fix release
after Xerces 2 production version. We are very confident that this product is
more stable from it's predecessor.
This release f
You state that it gives you the element name in the error message
Though this is not always the case.
For example if the element has an attribute and
it is the attribute that is invalid according to the schema
the error message is entirely different.
You may want to consider setting a flag to hold
I have set the validation/schema to true as follows:
parser.setFeature("http://xml.org/sax/features/validation";, true);
parser.setFeature("http://apache.org/xml/features/validation/schema";, true);
Thanks
Orla
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
If you are using xerces-2, you also need to turn on validation/schema
feature.
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
<[EMAI
o sandy, elena or someone, come for our
rescue!!!
Ragu
CircuitVision
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 04, 2002 10:14 AM
To: [EMAIL PROTECTED]
Subject: Réf. : Help in validating.
I had the same que
I had the same question and I had no answer... I would appreciate too to get
the name of the element just to get its properties in
the schema to alert the user and to remember to him the characteristics of the
data.
Hi Orla,
Everything seems to be okay for me except u r not setting the setting the
errorhandler before validating...
Try adding this code in ur xmlSchemaValidate() function
DOMParser parser = new DOMParser();
parser.setFeature(
"http://xml.org/sax/features/validation"
Hi Ragunath,
can you help me?
I have the following code and It doesnt validate properly if an error occurs:
Can you see what I am doing wrong??
Thanks alot,
Orla
package com.itservices.newsop.utils;
import org.apache.xerces.parsers.DOMParser;
import org.apache.xerces.parsers.SAXParser;
impor
Hi All,
I'm using xerces to validate my xml document with schema. I'm setting
ErrorHandler and i;m able to validate. When i get a exception, i'm able to
get the error message and the line number. Even though it gives me the
element name in the error message, is there any way i can get the element
The ErrorHandler interface in SAX has 3 methods defined
warning, error, and fatalError
You need to override the default behavior of the fatalError method
in this interface.
This method is called whenever an XML document is found not
to be well formed. At this point, parsing should be stopped or
con
> [EMAIL PROTECTED] wrote...
>
> Hello,
>
> No I am using xercesImp.jar and xercesParserAPIs.jar and have written a
> parser
to validate an xml document against an external schema.
>
> I have the following line in my code:
>
>
>
parser.setProperty("http://apache.org/xml/properties/s
Christian Geuer-Pollmann wrote:
>
> You say that
>
>
>
> has to be corrected to
>
>
>
> but why not to
>
>
>
> ? You can't decide what's right if you don't have a DTD or
> Schema. You internet explorer can correct non-well-formed HTML
> because he "knows" HTML.
> But nobody knows "XML" ;-))
>
Hello,
No I am using xercesImp.jar and xercesParserAPIs.jar and have written a parser
to validate an xml document against an external schema.
I have the following line in my code:
parser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation";,
"f
You say that
has to be corrected to
but why not to
? You can't decide what's right if you don't have a DTD or Schema. You internet explorer can correct non-well-formed HTML because he "knows" HTML.
But nobody knows "XML" ;-))
Christian
--On Montag, 4. März 2002 14:29 +0100 [EMAIL PROTECTED] wr
I am trying to use the xerces SAX parser to correct documents that are
potentially non well-formed, i.e. some end-tags may be missing. I have
already written a ContentHandler that generates the missing end-tags, but I
don't know how to make the parser aware of my corrections (if I don't, it
aborts
HI!
Yep, we'll do that.
Thanks and sorry for wrongly pointing the finger at Xerces. :-)
Regards,
Thomas
> -Original Message-
> From: Julian Reschke [mailto:[EMAIL PROTECTED]
> Sent: Montag, 4. März 2002 14:09
> To: [EMAIL PROTECTED]
> Subject: RE: Bad bug in handling of extra spaces
>
Probably because Xerces thinks it's not ignorable at all (I think it can
only be "ignorable" in the presence of a DTD).
You'd better update your code to handle whitespace text nodes...
> -Original Message-
> From: Thomas Börkel [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 04, 2002 2:05
HI!
Hmm, adding the following line to my code did not produce a DOM without those
whitespaces:
dbf.setAttribute("http://apache.org/xml/features/dom/include-ignorable-whitespace";,
new Boolean(false));
Is there a reason for this?
Thanks!
Regards,
Thomas
> -Original Message-
> Fr
That's because MSXML (wrongly) defaults to a mode where it removes
"ignorable" whitespace.
> -Original Message-
> From: Thomas Börkel [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 04, 2002 1:56 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Bad bug in handling of extra spaces
>
>
> HI!
>
> Th
HI!
Thanks for the ultrafast answer. :-)
We are currently switching our application from MX XML 4.0 (used via a COM
bridge) to Xerces2.
So, I suppose, the bug is in MS XML then, because there are no extra text nodes.
This is the MS XML code:
msXmlDoc = new FreeThreadedDOMDocument();
ms
It isn't a bug at all.
"formatting spaces" are whitespace and thus are reported as text nodes.
> -Original Message-
> From: Thomas Börkel [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 04, 2002 1:38 PM
> To: Xerces Mailinglist
> Subject: Bad bug in handling of extra spaces
>
>
> HI!
>
>
HI!
Xerces (tested with current build) handles formatting spaces as elements of
type text.
Example 1:
xml = "\r\n \r\n
\r\n";
Example 2:
xml = "";
The 2 examples produce 2 different DOMs! The first one produces an incorrect
DOM.
You can test it with this code:
Document doc;
Title: RE: Are there any open-source projects to convert SQL to XML?
Check out http://www.rpbourret.com/xmldbms/
-Original Message-
From: Rob Finneran [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 9:33 PM
To: [EMAIL PROTECTED]
Subject: RE: Are there any open-source project
Hi,
try the following :
protected static final String DEFAULT_PARSER_NAME =
"org.apache.xerces.parsers.SAXParser";
parser = XMLReaderFactory.createXMLReader(DEFAULT_PARSER_NAME);
Cheers
Orla
-Original Message-
From: Mercy Ponnupandy [mailto:[EMAIL PROTECTED]
Sent: Montag, 4. März 20
Hello,
I'm using JDK 1.3 and Xerces-J. I was trying to
create an XMLReader. My code is,
XMLReader xr = XMLReaderFactory.createXMLReader();
I'm getting the following error.
org.xml.sax.SAXException: System property
org.xml.sax.driver not specified
at
org.xml.sax.helpers.XMLReaderFact
Hi All,
I am having a very simple probem I am nto able to understand the problem
properly.
I am using a simple XML file with a DTD reference
I am reading the DTD name from a properties file,and then using InputSource,I am
trying to set the SystemId
input.setSystemId(DTDName);
This examle wo
Have a look at Castor (http://www.castor.org/)
(B
(B- Original Message -
$BAw?.
(B[EMAIL PROTECTED](B : <[EMAIL PROTECTED]>
$BAw?.F|;~(B : 2002$BG/(B3$B7n(B3$BF|(B 16:52
$B7oL>(B : Need Help !!!
(B
(B
(B> Hello Sir,
(B> I need to extract java classes out of XML-Schema(not
28 matches
Mail list logo