While this question comes up occasionally, I don't think anyone has ever
been interested enough in a modular Xerces to figure out how to create
it.  This may be due to the complexity of the task rather than a low
level of interest.  Note, though, that validating against a schema buys
into a whole lot of complexity.  I think the only thing of substance
that could be cut out in your use case is the DOM (which is no small
thing).  (Xerces doesn't implement XSLT and has minimal XPath support.)

You might want to look into the "perfect parser" approach mentioned in
http://bytes.com/forum/thread519243.html.  Be sure to check out the
links to the CodeSynthesis site.

-----Original Message-----
From: David Kelvin [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 13, 2008 1:45 PM
To: [email protected]
Subject: 2 Newbie to Xerces questions


I am part of an Open Source project that, until now, has been purely
Windows based.  It uses Microsoft's XML parser but we want to (are in
the process of) porting the core functionality of it to Linux (the GUI
comes later).  Hence the move to Xerces.
 
My two questions are:
 
1. We use SAX2 and use a standard format W3C XML schema to ensure that
the data we process is valid.  Is there an option to build a 'cut-down'
version of the Xerces library (DLL on Windows, the equivalent on Linux)
that just contains sufficient to satisfy this requirement i.e. no DOM,
XSLT, XPath etc. etc.?  If so, where are these documented?
 
2. On a similar vein, is there a subset of the include files needed by
the application that wants to use Xerces just to support SAX2 and
schemas?  I can't find in the documentation (does't mean it isn't there
- I just haven't yet found it) to say the minimum required for each
function.  e.g. "xercesc/util", "xercesc/sax2" &
"xercesc/validators/schema" - or do I need the whole "xercesc" directory
and its sub-directories?  I suppose this comes down to - how much of the
source distribution does an application that uses specific functions of
Xerces need access to (assuming I don't need the whole source to build
Xerces itself)?
 
Many thanks,
 
David
_________________________________________________________________
Make a mini you and download it into Windows Live Messenger
http://clk.atdmt.com/UKM/go/111354029/direct/01/

Reply via email to