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
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
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
Hello all,
I'd like to know if I can parse and validate a part of an xml
document using xerces-c parser?
..:: 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 -
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 -
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.
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 -
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 -