Re: How to get the error code during SAX parse?

2002-09-24 Thread Keno
Hi,   I don't use the Sax2 parser but the origianl Sax and I use the SAXParseException::getMessage() and SAXParseException::getLineNumber() method to receive the error and their locations within the xml file during a parse.   The getMessage() method actually prints out a formatted somewhat

Re: SAX implementation

2002-09-17 Thread Keno
You'd have to keep track of the structure within your code Kiran. Remember SAX is event driven so there is basically no history of past elements. You could probably build an internal DOM tree - Original Message - From: "Bagepalli, Kiran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: T

Re: Call for Vote: which one to be the Xerces-C++ public supported W3C DOM interface

2002-05-09 Thread Keno
ldn't do it. we've been working quite fine without it thus far ... it is however an option. ..:: Keno ::.. > > I said portable/reliable. Last I'd heard, C++ namespaces are not > available/trustworthy on some parsers. You have to decide whether you're > willing to

parsing a part of document

2002-03-29 Thread Keno
Hello all,   I'd like to know if I can parse and validate a part of an xml document using xerces-c parser?   ..:: Keno ::..

Very Useful development

2001-09-26 Thread Keno
OM tree for a record that you'd like to extract from the entire file. I've been looking for something like this for a while now.   Just thought I'd share it with all in case you don't know already. - Keno -

Sax and Dom Parser

2001-09-23 Thread Keno
to do is create a report something like below:   Heading : this will contain what is in the "head" tag  Report :  this will contain what is in the "content" tag   Any help would be appreciated.   - Keno -

Re: Saving Xerces C SAX2 parser attributes

2001-07-21 Thread Keno
rib.name = XMLString::transcode(attributes.getName(i)); attrib.type = XMLString::transcode(attributes.getType(i)); attrib.value = XMLString::transcode(attributes.getValue(i)); elemEntry.attributes.push_back(attrib);// elemEntry is a ElementXML struct } Hope this helps you.

SAXParser

2001-07-01 Thread Keno
Hello all, I'm using the SAXParser to validate an xml document with a DTD. When I encounter an error the parser stops. It's not a fatal error but a recoverable one. How do I let the parser continue parsing so that I can collect all the errors in the XML documnet? - Keno -

Validating a DTD

2001-06-28 Thread Keno
Hi all, I'm new to XML and Xerces and was wondering if someone could tell me how I can use the API to validate a DTD I've written. Also suppose I'm processing a huge XML file, say 10MB or larger, is there a buffering mechanism that can support streaming the XML throught the parser? - Keno -