Documente Academic
Documente Profesional
Documente Cultură
DOM parser - reads the whole XML document and returns a DOM tree representation of xml document. It
provides a convenient way for reading, analyzing and manipulating XML files. It is not well suited for large
xml files, as it always reads the whole file before processing.
SAX parser - works incrementally and generate events that are passed to the application. It does not generate
data representation of xml content so some programming is required. However, it provides stream processing
and partial processing which cannot be done alone by DOM parser.
What is Xpath?
What is XSL?
A DTD is:
The XML Document Type Declaration contains or points to markup declarations that provide a grammar for
a class of documents. This grammar is known as a document type definition or DTD.
The DTD can point to an external subset containing markup declarations, or can contain the markup
declarations directly in an internal subset, or can even do both.
A Schema is:
XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They
provide a means for defining the structure, content and semantics of XML documents.
In summary, schemas are a richer and more powerful of describing information than what is possible with
DTDs.
The XML namespaces recommendation defines a way to distinguish between duplicate element type and
attribute names. Such duplication might occur, for example, in an XSLT stylesheet or in a document that
contains element types and attributes from two different DTDs.
An XML namespace is a collection of element type and attribute names. The namespace is identified by a
unique name, which is a URI. Thus, any element type or attribute name in an XML namespace can be
uniquely identified by a two-part name: the name of its XML namespace and its local name. This two-part
naming system is the only thing defined by the XML namespaces recommendation.
SAX spec defines an event based approach, calling handler functions whenever certain text nodes or
processing instructions are found. These events include the start and end of the document, finding a text
node, finding child elements, and hitting a malformed element. SAX development is more challenging. SAX
can parse gigabytes worth of XML without hitting resource barriers. It’s also faster and more complex. Better
for huge XML docs. Best suited for sequential-scan applications.
5. What is Xpath?
XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and
XPointer.