Hi Praveen,

[EMAIL PROTECTED] wrote:
> 1.DOM is better than SAX.

It depends. Using DOM, the parser always reads the whole file, before 
further processing can take place. This can lead to difficulties, if 
you want to process huge xml files. You get the whole DOM tree as a 
representation of the xml document, you can conveniently manipulate 
it's content and easily write it out to a xml file.

AFAIK the DOM parser is implemented using SAX. The sax parser gives you 
the ability to react to 'events' during parsing, so you can collect 
parts of the content of the xml file. So it depends on your 
requirements to decide which one will be better.

> 2.The initialisation is not needed if we not using namespace.

It has nothing to do with initialisation, but with the ability of your 
compiler. If you intend to write portable code, the usage of the 
namespace macros is mandatory.

Please read the documentation about initializing xerces.

> 3.XML difference has to be implemented by us, there is no straight
> forward approach to do this.

Yes.

> Just one thing is not clear
> Which one should I use out of these 2 Xalan DOM or Xerces DOM ? For
> just XML parsing ?

I did not use Xalan DOM yet - so I can't help you with this choice of 
freedom ;)

Cheers,
                        Axel

-- 
Humboldt-Universit�t zu Berlin
Institut f�r Informatik
Signalverarbeitung und Mustererkennung
Dipl.-Inf. Axel Wei�
Rudower Chaussee 25
12489 Berlin-Adlershof
+49-30-2093-3050
** www.freesp.de **

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to