The i-Technology Media!
Register | Log in
   
 
.NET  ·  AJAX  ·  CLOUD  ·  ECLIPSE  ·  FLEX  ·  OPEN WEB  ·  iPHONE  ·  JAVA  ·  LINUX  ·  OPEN SOURCE  ·  ORACLE  ·  PBDJ  ·  SEARCH  ·  SILVERLIGHT  ·  SOA  ·  VIRTUALIZATION  ·  WEB 2.0  ·  WIRELESS  ·  XML
Comments
Drool, Britannia? Is the UK Failing the Cloud?
By Roger Strukhoff
Richard Davies wrote: The UK has a good crop of technology pioneers in cloud computing - for example ElasticHosts, FlexiScale, Flexiant, OnApp - and also some strong government initiatives such as G-Cloud. We will have to see whether this kind of technical leadership converts into swift mass-market adoption or not.
Jan. 8, 2012 11:38 AM EST
read more & respond »
Cloud Expo on Google News
Did you read today's front page stories & breaking news?

Cloud Expo & Virtualization 2011 West
Keynotes
Oracle
Opening Keynote | An Enterprise Cloud for Business-Critical Applications
Abiquo
Day 2 Keynote | The Enterprise Cloud Tightrope - Balancing for Success
Akamai
Day 3 Keynote | The DNA of an Enterprise Cloud
DIAMOND SPONSOR:
Oracle
Many Clouds, Many Choices'Cloud
PLATINUM PLUS SPONSORS:
Abiquo
Enterprise Cloud Best Practices - Town Hall - Join the discussion…
PLATINUM SPONSORS:
Intel
Progressing Toward the Federated, Automated and Client-Aware Cloud
New Relic
How to build an app with Twitter-like throughput
Rackspace
Computing in the Cloud Era
GOLD SPONSORS:
Gale Technologies
Practical Cloud Migration
IBM
Re-think IT. Re-inventing Business.
Intel/McAfee
Identity Driven Security in the Cloud
PerspecSys
Hackers Hackers Everywhere, Is My Public Cloud That Safe?
Red Hat
Unlock the Value of the Cloud
SHI
Mission Critical Applications and the Cloud - Myth or Reality?
SoftLayer
Not Your Grandpa's Cloud
Terremark
Integrating Enterprise Clouds
VMware
Upgrade to a vCloud
POWER PANELS:
Cloud Expo Silicon Valley: CTO Power Panel
Cloud Expo Silicon Valley: CEO Power Panel
Cloud Expo Silicon Valley: Cloud SuperStars Panel
Cloud Expo Silicon Valley: CloudNOW Panel
Click For 2010 West
Event Webcasts
Cloud Expo & Virtualization 2011 East
DIAMOND SPONSOR:
Dell
Dell & VMware Deliver the Enterprise Hybrid Cloud
PLATINUM PLUS SPONSORS:
Abiquo
Are Financial Services Organizations Risking Security by Avoiding Cloud Computing?
Oracle
From Consolidation to Enterprise Private PaaS
PLATINUM SPONSORS:
Intel
Driving the Transformation to Next Generation Cloud Data Centers
Rackspace
The Inevitability of an Open Cloud
GOLD SPONSORS:
CA Technologies
Follow YOUR path to Cloud Computing
Interxion
Who Keeps the Cloud in the Air?
Microsoft
Patterns for Cloud Computing
PerspecSys
War in the Clouds: Are you ready?
ServiceMesh
The Big Win: Stop Playing Small-Ball with Your Cloud Strategy
Terremark
Evaluating Enterprise Clouds
Xiotech
Cloud Storage: Myths and Realities
POWER PANELS:
Cloud Expo New York: CTO Power Panel
Cloud Expo New York: CEO Power Panel
Cloud Expo New York: CMO Power Panel
Cloud Expo New York: Wrap-Up Power Panel
Click For 2010 West
Event Webcasts
Live Google News by SYS-CON!
Top Three Links You Must Click On


Feature
XML Certification Quizzer
XML Certification Quizzer

By: Joel Amoussou
Jul. 1, 2003 12:00 AM

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.

Published Jul. 1, 2003— Reads 9,753 — Feedback 1
Copyright © 2003 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
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.

Add Your Feedback

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

Register | Sign-in

Reader Feedback: Page 1 of 1

#1
cyril commented on 17 Sep 2003

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.


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

Breaking Java News
Calgary Homeless Foundation: Agencies Target Long-Term Shelter Users for Housing and Support
ServiceNow Customers Discuss Next Generation ITSM at the 2012 Pink Elephant Conference
Canada Excellence Research Chair Determines How Marine Ecosystems in the Arctic are Responding to Climate Change
Rajant to Exhibit Kinetic Mesh Networking Solutions at 2012 SME Annual Meeting & Exhibit
ORLive Program Highlights Personalized Patient Care for Orthopedic Surgeons
ORLive Program Offers Solution to Essential Tremors
StratITsphere Honored as One of Top Managed Service Providers in North America
GreenCell's (GCLL) New Product Could Grab a Piece of the Multi-Billion Dollar Components Industry
Hugoton Royalty Trust Declares February Cash Distribution
O&S Trucking Chooses TAB Bank for $6 Million Credit Facility

ADVERTISE   |   MAGAZINE SUBSCRIPTIONS   |   FREE BREAKING-NEWSLETTERS!   |   SYS-CON.TV   |   BLOG-N-PLAY!   |   WEBCAST   |   EDUCATION   |   RESEARCH

.NET Developer's Journal - .NETDJ   |   ColdFusion Developer's Journal - CFDJ   |   Eclipse Developer's Journal - EDJ   |   Enterprise Open Source Magazine - EOS
Open Web Developer's Journal - OPENWEB   |   iPhone Developer's Journal - iPHONE   |   Virtualization - Virtualization   |   Java Developer's Journal - JDJ   |   Linux.SYS-CON.com
PowerBuilder Developer's Journal - PBDJ   |   SEO / SEM Journal - SJ   |   SOAWorld Magazine - SOAWM   |   IT Solutions Guide - ITSG   |   Symbian Developer's Journal - SDJ
WebLogic Developer's Journal - WLDJ   |   WebSphere Journal - WJ   |   Wireless Business & Technology - WBT   |   XML-Journal - XMLJ   |   Internet Video - iTV
Flex Developer's Journal - Flex   |   AJAXWorld Magazine - AWM   |   Silverlight Developer's Journal - SLDJ   |   PHP.SYS-CON.com   |   Web 2.0 Journal - WEB2
Apache   |   CMS   |   CRM   |   HP   |   Oracle Journal   |   Perl   |   Python   |   Red Hat   |   Ruby on Rails   |   SAP   |   SaaS

SYS-CON MEDIA:   ABOUT US   |   CONTACT US   |   COMPANY NEWS   |   CAREERS   |   SITE MAP
SYS-CON EVENTS:   |  AJAXWorld Conference & Expo  |  iPhone Developer Summit  |  Cloud Computing Conference & Expo  |  SOA World Conference & Expo  |  Virtualization Conference & Expo
INTERNATIONAL SITES:   India  |  U.K.  |  Canada  |  Germany  |  France  |  Australia  |  Italy  |  Spain  |  Netherlands  |  Brazil  |  Belgium
 Terms of Use & Our Privacy Statement     About Newsfeeds / Video Feeds
Copyright ©1994-2008 SYS-CON Publications, Inc. All Rights Reserved. All marks are trademarks of SYS-CON Media.
Reproduction in whole or in part in any form or medium without express written permission of SYS-CON Publications, Inc. is prohibited.
 
close this window