|
Hi,
I have couple of questions regarding Xerces and
Xalan
First one is why do we have to use these lines , whats the
importance of usign it ? Is this compulsory
XALAN_USING_XALAN(XalanDocument)
XALAN_USING_XALAN(XPathEvaluator) XALAN_USING_XERCES(XMLPlatformUtils) XALAN_USING_XERCES(MemBufInputSource) XALAN_USING_XALAN(XalanDOMString) XALAN_USING_XALAN(XalanNode) XALAN_USING_XALAN(XalanSourceTreeInit) XALAN_USING_XALAN(XalanSourceTreeDOMSupport) XALAN_USING_XALAN(XalanSourceTreeParserLiaison) XALAN_USING_XALAN(XObjectPtr) XALAN_USING_XALAN(NodeRefList) XALAN_USING_XERCES(LocalFileInputSource) Second One ,
We are tryign to write a program to perform following
things
1. We want to get the value of each tag , modify an XML tag
if necessary , delete an XML tag and store it back to the same XML file.
2. I need to do an XML transformation.
3. I need to do an XML validation.
4. I need to find the difference between two XML files. It
could in ordered or unordered.
1. In the second case what and all need to be initialised
?
2. Are there any API's to find the difference between two
XML files or do I have to perform these things on my own.
3. Should I use DOM or SAX ?
4. I heard both Xalan DOM and Xerces DOM is present , Which
one should I use ?
5. How to use only Xerces DOM or only Xalan DOM
?
6. Is Memory Manager necessary ? if yes please provide
me the sample code on how to use it ?
help me to answer these..
Thanks for the support
-Praveen
From: Amit Dang [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 10:49 AM To: [email protected] Subject: Re: How to get an Xpath? Hi Praveen,
You need to provide the XML
data/stream, it can be via XML File or in memory. A sample has been provided
with Xalan for XML data via file and for XML data stored in a memory you can use
'MemBufInputSource'. I am enclosing a .cxx and .hxx file while might be of some
help to you.
Hope this helps.
Cheers,
Amit Dang
|
