What is DOM?
Answer
DOM is an interface-oriented Application Programming Interface. It
allows for navigation of the entire document. A DOM document can be created by
a parser, or can be generated manually by users. Data types in DOM Nodes are
abstract. DOM implementations generally require the entire document to be
loaded into memory and constructed as a tree of objects before access is
allowed. DOM is supported in Java. Its specification is regulated by the World
Wide Web Consortium.
Explain the difference between DOM and SAX.
Answer
SAX parser works incrementally and generates events that are passed to
the application. DOM parser reads the whole XML document and returns a DOM tree
representation of xml document
In DOM the xml file is arranged as a tree and backward and forward search is
possible In SAX traversing in any direction is not possible as Top to bottom
approach is used.
SAX is essentially an API for reading XML, and not writing it. DOM allows you to
read and write.
|
More XML Links
Answer - An XSL sheet or a document may have duplicate elements
and attributes. Therefore, the XML namespaces define a way to distinguish
between..............
Answer - XML data binding refers to the process of representing
the information in an XML document as an object in computer
memory...............
Answer - XML documents can contain non ASCII characters, like
Norwegian æ ø å , or French ê è é which introduce errors...............
|
|