473,396 Members | 1,760 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.

Design & Implementation for validating XML documents

Hi there,

Could someone please suggest an open source implementation of a
validating XML parser ? I am interested in how this thing can
(should?) be designed. In particular how the errors should be handle:
1. If one at a time, it make is difficult to handle from a GUI, since
only one error can be corrected at a time
2. All errors are reported, which means that false positive may be
reported
Also how does the implementation report which elements contains
errors (using name, file position...).

Thanks
-Mathieu
Jun 28 '08 #1
3 1445
mathieu wrote:
Could someone please suggest an open source implementation of a
validating XML parser ?
Apache Xerces has a Java and a C++ version: http://xerces.apache.org/

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jun 28 '08 #2
mathieu wrote:
Hi there,

Could someone please suggest an open source implementation of a
validating XML parser ?
SP is at ftp://ftp.jclark.com/pub/sp/sp-1.3.4.tar.gz
rxp is at http://www.inf.ed.ac.uk/research/isd...e?view=1&id=80
I am interested in how this thing can
(should?) be designed. In particular how the errors should be handle:
This is always a problem, since the author cannot know what the user
wants to do on a given occasion: stop or continue.
1. If one at a time, it make is difficult to handle from a GUI, since
only one error can be corrected at a time
And when the first error is corrected, the validation must start again
from the beginning.
2. All errors are reported, which means that false positive may be
reported
This is very common because an error may not be recognisable as such
until some later condition makes it impossible to continue.
Also how does the implementation report which elements contains
errors (using name, file position...).
onsgmls reports line number and character position, and optionally the
names of open entities. In a synchronous typographical interface, an
error can be indicated by many means (highlighting, change of focus,
error log, ...)

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Jun 28 '08 #3
mathieu wrote:
1. If one at a time, it make is difficult to handle from a GUI, since
only one error can be corrected at a time
2. All errors are reported, which means that false positive may be
reported
Also how does the implementation report which elements contains
errors (using name, file position...).
I honestly believe XPath to the offending point is a more meaningful way
to report this, but whether it's more useful depends in part on the
quality of the tooling available to the user (and/or the user's skill
level).
Jun 30 '08 #4

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

Similar topics

6
by: mike | last post by:
Hello, After trying to validate this page for a couple of days now I was wondering if someone might be able to help me out. Below is a list of snippets where I am having the errors. 1. Line 334,...
81
by: Michael Rozdoba | last post by:
I've been wandering around the results of numerous googles for several hours without reaching a conclusive solution, so I'm dipping a tentative toe back in ciwah... I've been persuaded here in...
13
by: rbronson1976 | last post by:
Hi all, I have a very simple page that Firefox has problems with: www.absolutejava.com/testing.htm First of all, this page seems to be perfectly valid XHTML Strict. Both the W3C validator as...
6
by: Mark Jerde | last post by:
We have developed about 80 XML documents, each probably 150 lines long, that are all supposed to conform to a schema. My understanding is the way to show that an XML document conforms to a schema...
5
by: Dennis C. Drumm | last post by:
Is there a way to prevent the user from leaving a tab on a TabControl until all the controls on that tab have finished validating? The problem I am experiencing is when a control fails its...
7
by: mathieu | last post by:
Hello there, I am looking for suggestions for designing a simple file format based on XML. It will only contain text information (no binary data). 1. If I have a choice: Element or Attribute ?...
7
by: Kirt | last post by:
i have walked a directory and have written the foll xml document. one of the folder had "&" character so i replaced it by "&amp;" #------------------test1.xml <Directory> <dirname>C:\Documents and...
17
by: roN | last post by:
Hi, I'm creating a Website with divs and i do have some troubles, to make it looking the same way in Firefox and IE (tested with IE7). I checked it with the e3c validator and it says: " This...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.