Comments
Matt McLarty wrote: For more info... Follow me on Twitter See our website
Cloud Computing
Conference & Expo
November 2-4, 2009 NYC
Register Today and SAVE !..

2008 West
DIAMOND SPONSOR:
Data Direct
SOA, WOA and Cloud Computing: The New Frontier for Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
GOLD SPONSORS:
Appsense
User Environment Management – The Third Layer of the Desktop
Cordys
Cloud Computing for Business Agility
EMC
CMIS: A Multi-Vendor Proposal for a Service-Based Content Management Interoperability Standard
Freedom OSS
Practical SOA” Max Yankelevich
Intel
Architecting an Enterprise Service Router (ESR) – A Cost-Effective Way to Scale SOA Across the Enterprise
Sensedia
Return on Assests: Bringing Visibility to your SOA Strategy
Symantec
Managing Hybrid Endpoint Environments
VMWare
Game-Changing Technology for Enterprise Clouds and Applications
Click For 2008 West
Event Webcasts

2008 West
PLATINUM SPONSORS:
Appcelerator
Get ‘Rich’ Quick: Rapid Prototyping for RIA with ZERO Server Code
Keynote Systems
Designing for and Managing Performance in the New Frontier of Rich Internet Applications
GOLD SPONSORS:
ICEsoft
How Can AJAX Improve Homeland Security?
Isomorphic
Beyond Widgets: What a RIA Platform Should Offer
Oracle
REAs: Rich Enterprise Applications
Click For 2008 Event Webcasts
In many cases, the end of the year gives you time to step back and take stock of the last 12 months. This is when many of us take a hard look at what worked and what did not, complete performance reviews, and formulate plans for the coming year. For me, it is all of those things plus a time when I u...
SYS-CON.TV
XML Certification Quizzer
XML Certification Quizzer

In this month's "XML Certification Quizzer," we are going to review some interesting aspects of the syntax of XML and related technologies. You can learn more about the syntax of the language by running the sample code in the questions with an XML parser or an XSLT processor. The skills you'll learn here will prepare you for IBM Test 141 on XML and related technologies.

Question 1 (Information Modeling)
Which of the following XML documents is well-formed?

A.
">
%ent;

]>

B.



]>

C. ">



]>
%ent;

Select one answer.
Explanation: Choice A is the correct answer. The parameter entity reference %ent; is replaced with the element declaration for element b.

Choice B is not correct because in the internal subset of the document type declaration (the part delimited by [ and ]>), parameter entity references can occur only between markup declarations, not within markup declarations. Note that this well-formedness constraint is not applicable to parameter entity references in the external subset.

Choice C is not correct because parameter entity references can be referenced only in the DTD, not in the XML instance. The parser will treat %ent; as just a string, not an entity reference.

Question 2 (XML Processing)
Consider the following XML document:



Hello
World!

Which of these SAX events will be reported by a nonvalidating parser in the order specified?

A. startDocument()
processingInstruction()
startPrefixMapping()
startElement()
characters()
startElement()
characters()
endElement()
characters()
startElement()
characters()
endElement()
characters()
endElement()
endPrefixMapping()
endDocument()

B. startDocument()
processingInstruction()
startPrefixMapping()
startElement()
attributes()
ignorableWhiteSpace()
startElement()
characters()
endElement()
ignorableWhiteSpace()
startElement()
characters()
endElement()
ignorableWhiteSpace()
endElement()
endPrefixMapping()
endDocument()

C. startDocument()
processingInstruction()
startPrefixMapping()
startElement()
startElement()
characters()
endElement()
startElement()
characters()
endElement()
endElement()
endPrefixMapping()
endDocument()

Select one answer.
Explanation: Choice A is the correct answer. XML documents often contain white space to make them more readable. However, XML parsers must report all characters that are not markup to the application. A nonvalidating parser will report the white space and the line ends to the application with the characters() method.

Validating parsers report white space in element content using the ignorableWhiteSpace() method rather than the characters() method. Assume that the XML document has the following DTD:


xmlns:d CDATA #FIXED 'http://xdocs.org'>

Element a can only contain child elements b and c. A character inside element a (including white space characters) would make the document invalid. The white space before elements b and c would be called ignorable white space. If namespace processing is enabled by the parser, startPrefixMapping() and endPrefixMapping are used to report the start of the scope of a prefix-URI Namespace mapping and the end of the scope of a prefix-URI mapping, respectively.

Question 3 (Architecture)
The XML Encryption and Syntax Specification defines an EncryptedData element. Which of the following elements is a mandatory child element of EncryptedData?

A. EncryptionMethod
B. Ds:keyInfo
C. CipherData
D. EncryptionProperties

Select one answer.
Explanation: Choice C is the correct answer. EncryptedData is derived from the EncryptedType abstract type. The following is the complex type definition of the EncryptedType type:

abstract='true'>

type='xenc:EncryptionMethodType'
minOccurs='0'/>
minOccurs='0'/>



use='optional'/>
use='optional'/>
type='string' use='optional'/>
type='anyURI' use='optional'/>

The EncryptionMethod child element is optional and describes the encryption algorithm applied to the cipher data. The ds:KeyInfo child element is optional and contains information about the key used to encrypt the data. The CipherData child element is a mandatory element that contains the CipherValue or CipherReference. The CipherValue element contains the encrypted octet sequence as base64 encoded text. The CipherReference element provides a reference to an external location containing the encrypted octet. The EncryptionProperties child element is optional and contains additional information concerning the generation of the EncryptedData element.

The following is an example of an encrypted medical record in which the content of the IllnessInfo element is encrypted:



James Lambert Name/>

xmlns='http://www.w3.org/2001/04/xmlenc#'
Type='http://www.w3.org/2001/04/xmlenc#Content'>

A23B45C56



Question 4 (Testing and Tuning)
A complex type definition is specified in an external schema that has no target namespace. Which of the following XML Schema elements would you use to import the complex type into a schema, and extend the complex type by adding an attribute to its declaration?

A. import
B. redefine
C. include
D. redeclare

Select one answer.
Explanation: Choice B is the correct answer. The redefine element can be useful for schema authors who need a declarative mechanism for managing the evolution of their schema. Modifications to the schema can be described with the redefine element.

The redefined schema document must have the same targetNamespace as the redefining schema document, or no targetNamespace. If the redefined schema document has no targetNamespace, then it is converted to the redefining schema document's targetNamespace.

Within the redefine element, the base types in type definitions must be the types themselves. Attribute groups and model groups are defined as supersets or subsets of their definitions in the redefined schema.

Question 5 (XML Rendering)
Consider the following XML document:




aero corp manufacturer>
FC-7612
34


parts inc manufacturer>
B765-10
75


cat inc manufacturer>
JK766-6
56

Using XSL formatting objects, which XSLT stylesheet would you use to transform the XML document for printed output?

A. xmlns:xsl="http://www.w3.org/1999/
XSL/Transform" version="1.0">








data-type="number"/>






















B. xmlns:xsl="http://www.w3.org/1999/
XSL/Transform" version="1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format">




column-width="50mm"/>





select="catalog/item">
order="ascending"
data-type="number"/>





>
















C. xmlns:xsl="http://www.w3.org/1999/
XSL/Transform" version="1.0"
xmlns:fo="http://www.w3.org/
1999/XSL/Format">









order="ascending" data-type="number"/>






















Select one answer.
Explanation: Choice B is the correct answer.

Choice A is not correct because the XSL formatting object namespace is not declared. The element must have an "order" attribute, not a "sort-order" attribute.

Choice C is not correct because element names tr and td are not defined by the XSL specification.

Conclusion
To get the hands-on coding experience that you need in the real world, you should download some XML tools and try to run a few samples. It is also helpful to create small applications using real documents or data. You can obtain free open source XML software from http://xml.apache.org.

About Joel Amoussou
Joel Amoussou is founder and chief learning architect of XMLMentor.net, where he develops blended learning solutions for building and assessing XML skills. Joel is the author of an XML exam simulator and teaches live e-learning courses on XML certification.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

Dear Joel,

First congratulations for your very good job. Your quizz is really interesting and it's woth doing it.
Just one thing: may you improve the presenttion of article 673 so that code may appear?
It would be very nice from you.

Thanks in advance,
Cyril.


Your Feedback
cyril wrote: Dear Joel, First congratulations for your very good job. Your quizz is really interesting and it's woth doing it. Just one thing: may you improve the presenttion of article 673 so that code may appear? It would be very nice from you. Thanks in advance, Cyril.
SOA World Latest Stories
Facebook sold off again Tuesday scrapping the bottom at $30.98 after Reuters reported that Scott Devitt, a research analyst at the IPO’s lead underwriter Morgan Stanley, unexpectedly cut his revenue estimates on the company during the roadshow leading up to it going public last Friday....
As a Silver Sponsor of Cloud Expo New York, CloudPassage is offering special passes to SYS-CON's 10th International Cloud Expo, which will take place on June 11–14, 2012, at the Javits Center in New York City, New York. CloudPassage is the leading cloud server security provider, and c...
Private clouds solve many problems for enterprises and bring unique operational challenges along with them. There are dozens of companies of all sizes that will build you a private cloud and turn over the keys – then what? Trying to convert a traditional enterprise IT operations team t...
Cloud computing is becoming an integral part of every enterprise IT environment. With multiple cloud deployment models to choose from, understanding the essential components to any cloud solution will help ensure your success. In his session at the 10th International Cloud Expo, Ores...
The International Trade Commission’s six-member board of commissioners has issued an import ban against Motorola Mobility’s Android gear that the agency’s administrative law judge found in December infringes Microsoft’s patent on “generating meeting requests and group scheduling from a...
As a Platinum Sponsor of Cloud Expo New York, Intel is offering special passes to SYS-CON's 10th International Cloud Expo, which will take place on June 11–14, 2012, at the Javits Center in New York City, New York. Intel is a world leader in computing innovation. The company designs a...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers
ADS BY GOOGLE