473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

validate with schema cvc-elt.1: Can't find the declaration of element

sk
http://java.sun.com/developer/techni...ath/index.html

I am following this sample and trying to learn how to validate xml document
with the schema

I am getting the following error.

"cannot find the declaration of element 'birthdate'"

Instead of J2SE 5.0 I am using JDK 1.4.2 + Apache Xerces-J 2.8.0 in
/lib/endorsed folder.

What could be the problem?

SK
Jun 8 '06 #1
2 2676
sk wrote:
http://java.sun.com/developer/techni...ath/index.html

I am following this sample and trying to learn how to validate xml
document with the schema

I am getting the following error.

"cannot find the declaration of element 'birthdate'"

Instead of J2SE 5.0 I am using JDK 1.4.2 + Apache Xerces-J 2.8.0 in
/lib/endorsed folder.

What could be the problem?

SK


Xerces is long depricated and buggy, use xmllint+ (and xslproc if you
also need to process xslt's)
Jun 8 '06 #2
> Xerces is long depricated and buggy

Check the Apache website, but I really don't believe that's true.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Jun 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Leona | last post by:
Hello all, does anyone know of a tool, preferably free, preferably on linux, which will take an xml file and validate it against your own custom W3C XML Schema file (.xsd) ?? All help...
1
by: Randy | last post by:
I have a class which inherits from XmlDocument. Inside it has a public method which builds the xml after properties have been set. My question is how would I make this class validate itself...
1
by: Ron Rohrssen | last post by:
I've been working on learning XML schemas and trying to make use of the MS classes for validating data against a schema. So, I've been trying to work through some simple schemas and instances....
2
by: Allan Ebdrup | last post by:
Hi I have two strings in memory, a XML document and a Schema, I would like a function that takes these two as parameters and returns an errordescription if the XML does not validate and an empty...
3
by: Gilles Lambert | last post by:
Hi, i'm trying to validate a doc.xml against a schema XSD this way, but it doesn't validate anithing : Dim xrs As New XmlReaderSettings xrs.Schemas.Add("urn:mediatheque-lrvb8", "schema.xsd")...
2
by: Doru Roman | last post by:
Hi, I use C# to validate an XML document. It issues error messages and I do not understand why. Here is the XML document: <bookstore xmlns="http://tempuri.org/books.xsd"> <book...
10
by: gmocnik | last post by:
I am validating XML files on a server which has no internet access and the validadation in C# does not work. Schema with which I am validating has namespaces like:...
2
by: Reid Priedhorsky | last post by:
Hi folks, I have a need to validate XML files against both DTDs and XML Schema from the command line. In an ideal world, I'd be able to do something like: $ python validate.py foo.xml ...
3
by: Lord0 | last post by:
I *think* I need to be able to validate subsets of an XML document using different schema. The functionality I'm trying to implement is this. a) External suppliers produce an XML document...
1
by: Joris van Lier | last post by:
Hi, im trying to validate objects before they are sent over the wire to a webservice, the schema embedded into WSDL is not sufficient so i took that schema and extended it with additional...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.