SOA Quiz3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Service Oriented Architecture

SEN 428

Muhammad Amad
BSIT-8(A)
03-135182-015

Submitted to: SIR SHAFIQ

Department of Computer Science


BAHRIA UNIVERSITY, LAHORE
Quiz No 3

Q No 1: What are the disadvantages of Using DOM?


Ans:
 More memory needed since the XML tree is in memory.
 Operation Speed is Slower compared to SAX
 One of the big issues is that DOM can be memory intensive. As mentioned earlier, when
an XML document is loaded, the entire document is read in at once.
 DOM API is too complex. Although this is somewhat subjective, it is true that DOM is
not practical for small devices such as PDAs and cellular phones.

Q No 2: Define DOM Levels?


Ans:
Levels of DOM:
Level 0: Provides a low-level set of interfaces.
Level 1: DOM level 1 can be described in two parts: CORE and HTML.
 CORE provides low-level interfaces that can be used to represent any structured document.
 HTML provides high-level interfaces that can be used to represent HTML documents.

Level 2:
 CORE2: extends the functionality of CORE specified by DOM level 1.
 VIEWS: views allows programs to dynamically access and manipulate the content of the
document.
 EVENTS: Events are scripts that are either executed by the browser when the user reacts to
the web page.
 STYLE: allows programs to dynamically access and manipulate the content of style sheets.
 TRAVERSAL: This allows programs to dynamically traverse the document.
 RANGE: This allows programs to dynamically identify a range of content in the document.

Level 3:
Consists of five different specifications:
 CORE3: extends the functionality of CORE specified by DOM level 2.
 LOAD and SAVE: This allows the program to dynamically load the content of the XML
document into the DOM document and save the DOM Document into an XML document by
serialization.
 VALIDATION: This allows the program to dynamically update the content and structure of
the document while ensuring the document remains valid.
 EVENTS: extends the functionality of Events specified by DOM Level 2.
 XPATH: XPATH is a path language that can be used to access the DOM tree.

Q No 3: What are the advantages of Using DOM?


Ans:
 The file is parsed only once.
 High navigation abilities: This is the aim of the DOM design.
 Language and platform independent.
 It is traversable - Move back and forth in data.
 It is editable and dynamic.

Q No 4: What is Entity references?


Ans:
The term “Entity Reference” literally means reference to the entity. Entities are used to store
data, which could be a node, a user, a taxonomy term, or a custom Drupal development.
Entity Reference is an important module to build relationships between entities in Drupal. Below
are some of the examples of relationship:
1) A taxonomy term associated with a user account.
2) A parent content that references a child content element.

You might also like