Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Let's discuss the sample test

 
Larry Gao
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the free voucher program closed, now we can discuss the sample test problems. Anyone knows the answer of this one. Just don't understand the question.
An XML-based employee records application is populated from a back-end relational database. Each employee has a unique numeric employee ID number that serves as the database key for that employee. The XML has an associated DTD. Validating the employee ID data would be:
a) Handled by the parser associating the employee name to a unique ID attribute with the XML employee application providing the business logic or functionality.
b) Handled by the parser associating a unique ID element with the XML employee application providing the business logic or functionality.
c) Handled by the XML parser using a SAX parser and relying on event-handling to capture the value of a unique ID attribute and the XML employee application would deal with user interface and rendering issues.

d) Handled by the XML parser as a non-unique CDATA attribute, with verification, business logic and functionality being provided by the XML employee application.

e) Stored in an empID element, with a SAX parser capturing the element's character content and evaluating it, reporting the result to the XML employee application for further processing.

 
Matt_Blitz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm guessing A... but I'm no xml expert yet, haven't taken the sample test.
[This message has been edited by Matt_Blitz (edited December 20, 2001).]
 
Doug Wang
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I chose C when I took the samle test.
It is ID attribute indicates a unique element. So B,D,E are wrong. A states that "associating the employee name to a unique ID attribute" is confusing.

Doug
 
Louis Fegun
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will go with C as well. Note that XML applications are designed for user-interface and rendering functionality and not for business logic. Business logic is provided by enterprise software components, e.g. EJB and Servlets.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic