473,722 Members | 2,468 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1462
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
6326
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, column 13: there is no attribute "SRC" <bgsound src="C:\My Documents\zingwent.mids"> You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is...
81
4650
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 the past that serving xhtml is a bad thing (tm). I want the extra constraints xhtml imposes. It has been suggested before to create a DTD which requires these & includes all the requirements of HTML 4.01 & validate against that.
13
6349
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 well as Page Valet indicate it is valid. The page is being served with the proper MIME type of "application/xhtml+xml". Unfortunately, Firefox will not display the page due to a non-breaking
6
4246
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 is to include a reference to the XSD in the XML document, and check that it is valid. Some other members of the project team don't want to include a reference to the XSD in the XML documents, citing possible differences in parsers. Is my...
5
17085
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 validating event and the user clicks another tab things get messy. Ideally, I think the best solution is not to leave a tab until the validating event has completed successfully. Thanks,
7
1372
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 ? 2. Do I need to define my own file version (maybe as the first XML element) ? 3. Do I need to provide a DTD or XML schema ? Thanks for inputs,
7
1797
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 Settings\Administrator\Desktop\1\bye w&amp;y </dirname> <file> <name>def.txt</name> <time>200607130417</time> </file>
17
4847
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 Page Is Valid XHTML 1.0 Transitional!" but it still wouldn't look the same. It is on http://www.dvdnowkiosks.com/new/theproduct.php scroll down and recognize the black bottom bar when you go ewith firefox(2.0) which isn't there with IE7. Why does...
0
8740
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9386
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9239
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9158
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6685
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4764
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3208
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2148
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.