File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Product and Other Certifications and the fly likes Let's discuss the sample test Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Let Watch "Let New topic
Author

Let's discuss the sample test

Larry Gao
Greenhorn

Joined: Nov 16, 2001
Posts: 16
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

Joined: Dec 20, 2001
Posts: 1
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

Joined: Oct 05, 2001
Posts: 445
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


Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep
Louis Fegun
Ranch Hand

Joined: Aug 18, 2001
Posts: 60
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Let's discuss the sample test