[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[xml] Is Validating SAX Parser available ???



Hi,

This is my first mail to this group.. So a bit of intro..
I know about XML,SAX & DOM for quite sometime... I have used
JAXP [SAX & DOM]interface..
I am currently looking at writing a C library to create and
parse XML documents for B2B communication. I have done it
with
Java before. I have used a Validating SAX parser...


I have downloaded the libxml library & figuring out how to
have
a Validating SAX parser. Till now not met with success.. :(

I tried running the testSAX sample application for the XML
document we have.. The XML doc looks like this...

<?xml version='1.0' encoding="US-ASCII" ?>
<!DOCTYPE msg PUBLIC "-//B2B XML-API Version 1.0//EN"
                       "xmlapi.dtd">
<msg>
.....
</msg>

The resolveEntity() in the SAXHandler list of function
pointers is
never called whhen the DOCTYPE declation is encountered..
The events
thrown by testSAX appln is :- [Args passed to testSAX
: -debug -push ]

SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(msg, -//B2B XML-API Version 1.0//EN,
xmlapi.dtd)
SAX.externalSubset(msg, -//B2B XML-API Version 1.0//EN,
xmlapi.dtd)
SAX.startElement(msg)
....

Why it is not called ??  Can any one help ???

Thanx in Advance..
Rajagopalan.


----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:mailadmin wipro com and delete this mail
from your records.
----------------------------------------------------------------------------------------------------------------------



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]