Thank you very much It works..But actually i just added one line to my code..
Here is my sample code..Seting the property
(parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage";,
http://www.w3.org/2001/XMLSchema);) was the key ..
Here is my sample code..
Thanks for your answer.I will use the serialization (first solution) and
then I will imagine the solution to overtax my brain recompiling Xerces with
DOM3 feature and using this feature. Seems to be a big challenge !
Regards. Yvan
-Original Message-
From: Doug Helton [mailto:[EMAIL P
Ron Rothblum wrote:
> Yes, I saw this in the attributes parameter of the startElement() method.
> The thing is that I need to get the column number for each attribute.
You won't be able to get this information using Xerces.
Thank you,
--
Elena Litani / IBM Toronto
--
I did not want to overtax his brain and make him recompile xerces with the
DOM level 3 stuff.
Thanks,
Douglas P. Helton
Lockheed Martin/STRICOM IDE
3045 Technology Parkway
Orlando, FL 32826
(321)235-7728
-Original Message-
From: Rob Outar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 07
Doug,
The problem is that my DOM document contains large amount of data and I
would like to avoid to serialize it for performance reasons (I have to do
that on many large DOM documents). Do you know an other way avoiding
serialization ?
Regards. Yvan
-Original Message-
From: Doug Helto
http://xml.apache.org/xerces2-j/faq-dom.html#faq-7
Thanks,
Rob
-Original Message-
From: Doug Helton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 07, 2003 10:18 AM
To: [EMAIL PROTECTED]
Subject: RE: DOM and schema validation
Yvan,
Try this. Serialize out the Dom. once you do
Yvan,
Try this. Serialize out the Dom. once you do this you can create an
input
source and hand it to a sax parser. Don't forget to create an error handler
for the parser.
here is the code to serialize the DOM:
OutputFormat outputFormat = new OutputFormat();
StringWr
Hi,
I have a DOM document that I already have parsed. Now I would like to
validate it against an XML schema.
Does anyone know how I can procede ? Do you have an code sample for this
operation ?
Thanks in advance.
Yvan Hess
-
[EMAIL PROTECTED] wrote:
Hi Venu,
Thanks for the reply.
Actually I read on the xerces page some thing similar .It says that in future they will also allow to use the property" http://java.sun.com/xml/jaxp/properties/schemaLanguage"
to decide what validation to do.
But which pars
Hi Venu,
Thanks for the reply.
Actually I read on the xerces page some thing similar .It says that in future
they will also allow to use the property"
http://java.sun.com/xml/jaxp/properties/schemaLanguage";
to decide what validation to do.
But which parser you are using?Is it Xerces or w
Hi Shirish ,
[EMAIL PROTECTED] wrote:
Hi All,
I am fairly new bee as far as xml schemas are concerned.Following problem has troubled me for last 2 days.I have searched all user archives and web resources but no use.So finally i am sending this to xerces users list.
I have an xml configura
I think this makes sense.
And i can see the problem in the way the xsd file is defined.So what you can do
is
http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="C://tmp//xml//JetPayCCSchema.xsd">
HTH,
Regards,
Shirish.
n.b. I found a very good tutorial from Roger L. Cos
Hi Vamsi,
> Vamsi Atluri wrote...
>
> Hi,
>
> (I posed this on xerces-j-users list, but didn't get any reply yet). I am
> using Xerces 2.4.0 for parsing XML files and validating the XML
> against the schema file. I created an entity resolver class which loads
> the XSD file from the local
Thanks Doug. It worked once I set SCHEMA_FULL_CHECKING feature to true.
- Original Message -
From:
Doug
Helton
To: [EMAIL PROTECTED]
Sent: Tuesday, May 06, 2003 6:33 PM
Subject: RE:
validation
private String VALIDATION = "http://xml.org/sax/featu
Hello Andres,
It seems like you're looking at the documentation for Xerces-J1. The
class: org.apache.xerces.readers.DefaultReaderFactory (and its package) no
longer exists. Xerces 2.4.0 is a version of Xerces-J2, and is pretty much
a complete rewrite of its predecessor. The docs for the version yo
15 matches
Mail list logo