Beruflich Dokumente
Kultur Dokumente
7:05 PM
yes
yes
SBM0 Which of the following models focuses on the roles 1, Process and
02
of people and organizations in getting work done? workflow
models
yes
1, HTML
2, WML
3, SGML
4, XML
2, Data flow
models
3, Use cases
4, Object models
1, <?xml
2, <?xml
3, <?xml
version="1.0"?> version="1.0"?> version="1.0"?>
4, <?xml
version="1.0"?>
<AUTHORS>
<AUTHORS>
<AUTHORS>
<AUTHORS>
<AUTHOR>
<AUTHOR>
<AUTHOR>
<AUTHOR>
yes
</AUTHOR>
</AUTHOR>
</AUTHORS>
</AUTHOR>
</AUTHORS>
</authors>
</AUTHOR>
</AUTHORS>
2, Bob should
3, Bob should use 4, Bob has to
use XML instead SGML instead of continue using
of EDI
EDI
EDI
SBM0 Which of the following data types in XML schemas 1, Union data
05
is derived from the atomic and list data types?
types
4, Atomic data
types
yes
1, timeDuration 2,
3, Integer
recurringDuratio
n
4, Long
yes
1, optional
2, default
3, required
4, fixed
2, name
3, ref
4, type
2, A namespace 3, A namespace
is a virtual space URI is same as a
that is assigned Web URI
or recognized by
a URI.
4, The
namespace is a
string that
uniquely
identifies the
elements and
attributes from
different
schemas.
2, xsd
3, xmlau
4, name
2, The include
3, The include
4, The include
1, A namespace
is a method of
preventing
conflicts
between
elements with
the same name.
1, The include
1, The include
element is used
to include or
refer to an
external schema
that is located
at a definite
address.
2, The include
element
contains the
schemaLocation
attribute.
3, The include
element can have
multiple
occurrences in an
XSD document.
4, The include
element allows
you to access
components from
multiple schemas
that may belong
to different
target
namespaces.
2, group
3, attributeGroup 4, all
yes
yes
1, vertical-align 2, texttransform
yes
1, Uses less
memory
1, //
2, /
3, .
3, text-align
4, text-indent
4, *
yes
2, PRICE[ .
&>= 20]
yes
2, TBody
3, TH
4, Table
yes
2, Element
object
3, Node object
4, NodeList
object
yes
1, readyState
2, async
3,
validateOnParse
4, parseError
1, M/DD/YY
2, MM
3, DD/YY
4, MM/DD
3, get()
4,
NamespaceURI()
1, THead
substring('MM/DD/YY',2)
yes
1,
2,
namespaceURI(i get(namespace
ndex number) URI)
1, var
namespace=xml
Doc.documentEl
ement.namespa
ceURI;
2, var
namespace=xml
Doc.documentEl
ement.namespa
ceURI;
3, var
namespace=xmlD
oc.namespaceURI
;
4, var
namespace=xmlD
oc.documentEle
ment.namespace
URI;
var
var
var
var
xsdschemacach
e = new
ActiveXObject("
Msxml2.XMLSch
emaCache.6.0")
;
var
xsdschemacache
= new
ActiveXObject();
var
xsdschemacache
= new
ActiveXObject("M
sxml2.XMLSchem
aCache.6.0");
var
xsdschemacache
= new
ActiveXObject("M
sxml2.XMLSchem
aCache.6.0");
xsdschemacach
e.add(namespac
e,document.frm
Transform.
xsdschemacache
.add(namespace
,document.frmT
ransform.
xsdschemacache.
add(namespace,d
ocument.frmTran
sform.
xsdschemacache.
add(namespace,d
ocument.frmTran
sform.
yes
xmlDoc.load(do
cument.frmTran
sform.TxtXMLFil
eName.value);
xmlDoc.load(doc
ument.frmTrans
form.TxtXMLFile
Name.value);
xmlDoc.load(docu
ment.frmTransfor
m.TxtXMLFileNam
e.value);
xmlDoc.load(doc
ument.frmTransf
orm.TxtXMLFileN
ame);
1, The number
of parameters
passed to the
createNode
method is
incorrect. The
correct code is
as follows:
2, The number
of parameters
passed to the
createNode
method is
incorrect. The
correct code is
as follows:
3, The number of
parameters
passed to the
createNode
method is
incorrect. The
correct code is as
follows:
4, The number of
parameters
passed to the
createNode
method is
incorrect. The
correct code is as
follows:
var docobj=new
ActiveXObject("Msxml2.DOMDocument.6.0");
var docobj =
new
ActiveXObject("
Msxml2.DOMD
ocument.6.0");
var docobj =
new
ActiveXObject("
Msxml2.DOMDo
cument.6.0");
docobj.async=false;
if (docobj.childNodes.length==0)
if
if
if
if
(docobj.childNo (docobj.childNo (docobj.childNode (docobj.childNod
des.length==0) des.length==0) s.length==0)
es.length==0)
myroot=docobj.createNode("Product");
docobj.appendChild(myroot);
docobj.save("d:\Prod.xml");
docobj.save("d:
\Prod.xml");
1, var
myxmldoc=new
ActiveXObject("
Msxml2.DOMD
ocument.6.0");
2, var
myxmldoc=new
ActiveXObject("
Msxml2.DOMDo
cument.6.0");
3, var
myxmldoc=new
ActiveXObject("M
sxml2.DOMDocu
ment.6.0");
4, var
myxmldoc=new
ActiveXObject("M
sxml2.DOMDocu
ment.6.0");
ocument.6.0");
cument.6.0");
ment.6.0");
ment.6.0");
var i;
var i;
var i;
var i;
<?xml version="1.0"?>
<empfolio>
<emp>
if
(myxmldoc.read
yState == 4
&& myxmldoc.
parseError.error
Code==0)
if
(myxmldoc.read
yState == 1
&& myxmldoc.p
arseError.errorC
ode==0)
if
(myxmldoc.ready
State == 3
&& myxmldoc.pa
rseError.errorCod
e==0)
if
(myxmldoc.ready
State == 2
&& myxmldoc.pa
rseError.errorCod
e==0)
<empname>John Rambo</empname>
<empcity>Texas</empcity>
var
root=myxmldoc.
documentEleme
nt;
var
var
var
root=myxmldoc. root=myxmldoc.d root=myxmldoc.d
documentEleme ocumentElement; ocumentElement;
nt;
</emp>
for (i=0;
for (i=0;
for (i=0;
for (i=0;
i< root.childNod i< root.childNod i< root.childNodes i< root.childNode
es.length; ++ i) es.length; ++ i) .length; ++ i)
s.length; ++ i)
<emp>
<empname>James Bond</empname>
alert
alert
alert
alert
(root.childNode (root.childNodes (root.childNodes.i (root.childNodes.i
s.item(i).xml);
.item(i).xml);
tem(i).xml);
tem(i).xml);
<empcity>London</empcity>
else
else
else
else
alert("Failed to
load the
document.
Check whether
your
XML document
is wellformed");
alert("Failed to
load the
document.
Check whether
your
XML document
is well-formed");
alert("Failed to
load the
document. Check
whether your
XML document is
well-formed");
alert("Failed to
load the
document. Check
whether your
XML document is
well-formed");
2, <xsl:value-of
select='(./PRICE)
*
sum(./ORDER/Q
UANTITY)' />
3, <xsl:value-of
select='(@PRICE)
*
sum(ORDER/QUA
NTITY)' />
4, <xsl:value-of
select='(PRICE) *
sum(ORDER/QUA
NTITY)' />
</emp>
</empfolio>
<SUMMARY>
<PRODUCT ID="P001" NAME="Mini Bus"
PRICE="75">
<ORDER ID="O001">
<SHIP_ADD>10 NEWSLAND ESTATE,
NY</SHIP_ADD>
1, <xsl:value-of
select='(./
@PRICE) *
sum(./ORDER/Q
UANTITY)' />
<QUANTITY>30</QUANTITY>
</ORDER>
<ORDER ID="O002">
<SHIP_ADD>11 NEWSLAND ESTATE,
NY</SHIP_ADD>
<QUANTITY>50</QUANTITY>
</ORDER>
</PRODUCT>
</SUMMARY>
Bob wants to calculate the total sales amount for a
product. Which of the following options will enable
Bob to achieve this task?
SBM0 Bob wants to use an XPath function that will return 1, floor(num)
27
the largest integer that is less than or equal to the
argument. Which of the following functions will
enable Bob to achieve this task?
yes
2, ceiling(num)
3, round(num)
4, number(obj?)
1, <xsl:if
2, <xsl:if
3, <xsl:if
4, <xsl:if
test="PRICE [. = test="PRICE [. = select="PRICE [. = select="PRICE [. =
500]">
500]" />
500]">
500]" />
1, var
xslprocobj=xslto
bj.createProcess
or();
2, var
xslprocobj=new
createProcessor
();
3, var
4, var
xslprocobj=new
xslprocobj=create
ActiveXObject(xslt Processor();
obj);
1,
<xsl:stylesheet
xmlns:xsl="htt
p://www.w3.or
g/1999/XSL/Tr
ansform"
version="1.0">
2,
<xsl:stylesheet
xmlns:xsl="http
://www.w3.org/
1999/XSL/Tran
sform"
version="1.0">
3,
<xsl:stylesheet
xmlns="http://ww
w.w3.org/1999/X
SL/Transform"
version="1.0">
4,
<xsl:stylesheet
xmlns:xsl="http:/
/www.w3.org/19
99/XSL/Transfor
m"
version="1.0">
<xsl:template
match="/">
<xsl:template
match="/">
<xsl:template
match="/">
<xsl:template
match="/">
<?xml version="1.0"?>
<html>
<PRODUCTDATA>
<body>
<PRODUCT>
<html>
<body>
<xsl:for<li>
each
<xsl:value-of
select="PRODU select="PRODUC
CTDATA/PRODU TNAME"/></li>
CT">
<html>
<body>
<xsl:foreach
select="PRODUCT
DATA/PRODUCT"
>
<html>
<body>
<xsl:foreach
select="PRODUCT
DATA/PRODUCT"
>
<PRODUCTNAME>Mini Bus</PRODUCTNAME>
<li>
<li>
<li>
<li>
<xsl:value-of
<xsl:value-of
<xsl:value-of
<xsl:value-of
select="PRODU select="DESCRIP select="PRODUCT select="PRODUCT
CTNAME"/>
TION"/></li>
NAME"/></li>
NAME"/></li>
</li>
<li>
<li>
<li>
<li>
<xsl:value-of
<xsl:value-of
<xsl:value-of
<xsl:value-of
select="DESCRIP select="QUANTI select="DESCRIPTI select="DESCRIPT
TION"/></li>
TY"/></li>
ON"/></li>
ION"/></li>
above</DESCRIPTION>
<li>
<li>
<li>
<li>
<xsl:value-of
<xsl:value-of
<xsl:value-of
<xsl:value-of
select="QUANTI select="PRICE"/ select="QUANTIT select="QUANTIT
<li>
<br>
<xsl:value-of
</br>
select="PRICE"/
></li>
<QUANTITY>54</QUANTITY>
<br>
<li>
<xsl:value-of
select="PRICE"/>
</li>
</body>
<li>
<xsl:value-of
select="PRICE"/>
</li>
<br></br>
<br></br>
</br>
</PRODUCT>
</body>
</html>
</xsl:foreach>
<PRODUCT>
</html>
<PRODUCTNAME>Race Car</PRODUCTNAME>
<DESCRIPTION>This is a toy for children aged 6
and
</xsl:template
>
</xsl:template </xsl:stylesheet
>
>
</xsl:stylesheet
>
</body>
</html>
</xsl:foreach>
</body>
</html>
</xsl:template>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
2,
<xsl:stylesheet
xmlns:xsl="http
://www.w3.org/
1999/XSL/Tran
sform"
version="1.0">
3,
<xsl:stylesheet
xmlns:xsl="http:/
/www.w3.org/19
99/XSL/Transfor
m"
version="1.0">
4,
<xsl:stylesheet
xmlns:xsl="http:/
/www.w3.org/19
99/XSL/Transfor
m"
version="1.0">
<xsl:template
match="/">
<xsl:template
match="/">
<xsl:template
match="/">
<xsl:template
match="/">
<?xml version="1.0"?>
<html>
<html>
<html>
<html>
<?xml-stylesheet type="text/xsl"
href="customer.xsl"?>
<body>
<body>
<body>
<body>
<CUSTDETAILS>
<xsl:for-each
<xsl:for-each
<xsl:for-each
<xsl:for-each
select="CUSTDE select="CUSTDE select="CUSTDET select="CUSTDET
TAILS/CUSTOM TAILS/CUSTOME AILS">
AILS/CUSTOMER"
ER">
R">
>
<CUSTOMER CUSTID="C001">
above</DESCRIPTION>
<PRICE>14</PRICE>
<QUANTITY>150</QUANTITY>
</PRODUCT>
<PRODUCT>
<PRODUCTNAME>Baby's
Rattle</PRODUCTNAME>
<DESCRIPTION>This is a toy for
babies</DESCRIPTION>
<PRICE>5</PRICE>
<QUANTITY>25</QUANTITY>
</PRODUCT>
</PRODUCTDATA>
Identify the correct style sheet that Bob needs to
create to display the product details as a list.
yes
<CUSTNAME>William Anderson</CUSTNAME>
New Section 2 Page 6
<li><xsl:value-
<li><xsl:value-
<li><xsl:value-of
<li><xsl:value-of
<CUSTNAME>William Anderson</CUSTNAME>
<CITY>New York</CITY>
<STATE>New York</STATE>
<COUNTRY>USA</COUNTRY>
<PHONE>6785764</PHONE>
</CUSTOMER>
<br></br>
<CUSTOMER CUSTID="C002">
<CUSTNAME>Bill Sanders</CUSTNAME>
</xsl:foreach>
</body>
<br></br>
<br></br>
<br></br>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</body>
</body>
</body>
</html>
</html>
</html>
</html>
<CITY>Seattle</CITY>
</xsl:template>
<STATE>Washington</STATE>
</xsl:stylesheet>
<COUNTRY>USA</COUNTRY>
<PHONE>608475</PHONE>
</CUSTOMER>
</CUSTDETAILS>
Now, he wants to create an XSLT style sheet that
displays the information in bulleted list. Identify
the code that he needs to write to create the XSLT
style sheet.
yes
1, JavaScript
2, VBScript
3, JScript
4, CGI
yes
1, window
2, form
3, navigator
4, link
yes
2, frames
3, length
4, defaultStatus
yes
2, document
3, frame
4, location
1, window
1, <br>
2, <b>
3, <h1>
4, <td>
yes
2, <b>
3, <i>
4, <u>
yes
2, <P>
3, <TITLE>
4, <HEAD>
2, <HTML>
3, <HTML>
4, <HTML>
<BODY>
<BODY>
<BODY>
<BODY>
<IMG
<MAP
<IMG
SRC="image.gif" NAME="down_ SRC="image.gif"
USEMAP="#ma map">
USEMAP="#map_
p_section">
section">
<IMG
SRC="image.gif"
USEMAP="#map_
section">
<MAP
<AREA
<MAP
<MAP
NAME="down_ Name="exit"
NAME="down_m NAME="down_m
map">
COORDS="10,10 ap">
ap">
,50,50"
SHAPE="rect"
HREF="image.gif
">
<AREA
</BODY>
Name="exit"
COORDS="10,10
,50,50"
SHAPE="rect"
HREF="image.gi
f">
</BODY>
<AREA
Name="exit"
SHAPE="rect"
HREF="image.gif"
>
</BODY>
</HTML>
</BODY>
</HTML>
</HTML>
SBM0 You want to create a simple type element named
40
Price. You want to ensure that the element should
contain a value greater than 10 but less than 400.
Which of the following code snippets will you use
to create the element?
1,
<xsd:simpleTyp
e
name="Price">
</HTML>
2,
3,
<xsd:simpleType <xsd:simpleType
name="Price"
name="Price">
restriction="xsd:
positiveInteger"
>
4,
<xsd:simpleType
name="Price">
<xsd:restrictio
<xsd:maxIncl <xsd:restriction
<xsd:maxInclus
n
usive
base="xsd:positiv ive value="400">
base="xsd:positi value="400">
eInteger">
</xsd:maxInclusiv
veInteger">
</xsd:maxInclusi
e>
ve>
<xsd:maxIncl
<xsd:minInclu
<xsd:max
usive
sive value="10"> value="400">
value="400">
</xsd:minInclusi </xsd:max>
</xsd:maxInclus ve>
ive>
<xsd:minInclus
ive value="10">
</xsd:minInclusiv
e>
<xsd:minIncl </xsd:simpleTyp
<xsd:min
usive
e>
value="10">
value="10">
</xsd:min>
</xsd:minInclusi
ve>
</xsd:restrictio
n>
</xsd:restriction
>
</xsd:simpleTyp
e>
</xsd:simpleType
>
</xsd:simpleType
>
1,
<xsd:schema
xmlns:xsd="htt
p://www.w3.or
g/2001/XMLSc
hema">
2,
<xsd:schema
xmlns:xsd="htt
p://www.w3.or
g/2001/XMLSc
hema">
3, <xsd:schema
xmlns:xsd="http:
//www.w3.org/20
01/XMLSchema"
>
4, <xsd:schema
xmlns:xsd="http
://www.w3.org/2
001/XMLSchem
a">
<xsd:attribute
name="PRODID
" type="pID"
use="required"
>
<xsd:attribute
name="PRODID"
type="pID"
use="required"/
>
<xsd:attribute
name="PRODID"
type="pID"
use="required"/>
<xsd:attribute
name="PRODID"
type="pID"
use="required"/>
<xsd:schema
<xsd:simpleTyp <xsd:simpleType <xsd:simpleType
xmlns:xsd="http://www.w3.org/2001/XMLSche e name="pID"> name="pID">
name="pID">
ma">
<xsd:restrictio
<xsd:simpleType
name="pID">
<xsd:restrictio
<xsd:patter
<xsd:restriction
n
n
n value="[P]
base="xsd:string"
base="xsd:strin base="xsd:string {1}\d{3}"/>
>
g">
">
<xsd:simpleType name="pID">
<xsd:patt
<xsd:patte </xsd:simpleType
<xsd:patter
ern value="[P] rn value="[P]
>
n value="[P]
{1}\d{3}"/>
\d{3}"/>
{1}\d{3}"/>
</xsd:restrictio
n>
</xsd:simpleType>
</xsd:simpleTyp </xsd:simpleTyp
e>
e>
</xsd:simpleType
>
</xsd:schema>
</xsd:schema>
</xsd:schema>
</xsd:schema>
1, Declarations
of the default
namespaces do
not affect
attribute names
2, Attribute
names may
contain only
zero or one
colon (:)
characters.
2, Elements that
explicitly use the
prefix comes
under the scope
of the specified
namespace.
3, Explicit
namespaces are
used in an XSD
document that
uses the elements
and attributes
defined in one or
more
namespaces.
4, xmlns keyword
associates a
prefix with a
namespace URI
namespaces.
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSche
ma">
:
:
</xsd:schema>
Which of the following statements is NOT true for
the preceding code snippet?
yes
3, <xsd:all>
4, <xsd:group>
1,
SBM0 You have created the following XSD schema that
45
will enable you to use the elements in any order of <xsd:schema
xmlns:xsd="htt
your choice:
p://www.w3.or
g/2001/XMLSc
hema">
3, <xsd:schema
xmlns:xsd="http:
//www.w3.org/20
01/XMLSchema"
>
4, <xsd:schema
xmlns:xsd="http
://www.w3.org/2
001/XMLSchem
a">
2,
<xsd:schema
xmlns:xsd="htt
p://www.w3.or
g/2001/XMLSc
hema">
<xsd:element
<xsd:element
<xsd:element
name="EMPLOY name="EMPLOY name="EMPLOYE
EE"/>
EE"
E"/>
type="emptype"
/>
<xsd:schema
<xsd:complexT <xsd:complexT <xsd:complexTyp
xmlns:xsd="http://www.w3.org/2001/XMLSche ype
ype
e
ma">
name="emptyp name="emptyp name="emptype"
e">
e">
>
<xsd:element name="EMPLOYEE" type="emptype"
<xsd:sequenc
/>
e>
<xsd:complexType name="emptype">
<xsd:all>
<xsd:element
name="EMPLOYE
E"
type="emptype"
/>
<xsd:complexTy
pe
name="emptype"
>
<xsd:all>
<xsd:sequence
>
<xsd:eleme
nt
name="FIRSTNA
ME"
type="xsd:string
"/>
<xsd:eleme
nt
name="FIRSTNA
ME"
type="xsd:string
"/>
<xsd:elemen
t
name="FIRSTNAM
E"
type="xsd:string"/
>
<xsd:elemen
t
name="FIRSTNA
ME"
type="xsd:string"
/>
<xsd:eleme
nt
name="LASTNA
ME"
type="xsd:string
"/>
<xsd:eleme
nt
name="LASTNA
ME"
type="xsd:string
"/>
<xsd:elemen
t
name="LASTNAM
E"
type="xsd:string"/
>
<xsd:elemen
t
name="LASTNAM
E"
type="xsd:string"
/>
<xsd:element name="FIRSTNAME"
type="xsd:string"/>
<xsd:eleme
nt
name="DESIG"
type="xsd:string
"/>
<xsd:eleme
<xsd:elemen
<xsd:elemen
nt
t name="DESIG" t name="DESIG"
name="DESIG" type="xsd:string"/ type="xsd:string"
type="xsd:string >
/>
"/>
<xsd:element name="LASTNAME"
type="xsd:string"/>
<xsd:eleme
nt
name="DEPART
MENT"
type="xsd:string
"/>
<xsd:eleme
nt
name="DEPART
MENT"
type="xsd:string
"/>
<xsd:choice>
<xsd:element name="DESIG"
New Section 2 Page 10
</xsd:sequen
</xsd:all>
<xsd:elemen
t
name="DEPARTM
ENT"
type="xsd:string"/
>
</xsd:all>
<xsd:elemen
t
name="DEPARTM
ENT"
type="xsd:string"
/>
</xsd:sequenc
<xsd:element name="DESIG"
type="xsd:string"/>
</xsd:sequen
ce>
<xsd:element name="DEPARTMENT"
type="xsd:string"/>
</xsd:choice>
</xsd:schema>
</xsd:all>
</xsd:all>
</xsd:sequenc
e>
</xsd:schema>
</xsd:schema>
</xsd:schema>
2, <schema
xmlns="http://w
ww.w3.org/200
1/XMLSchema
"
3, <schema
xmlns="http://ww
w.w3.org/2001/X
MLSchema"
4, <schema
xmlns="http://w
ww.w3.org/2001
/XMLSchema"
targetNamespac
e="www.ecoma
tcybershop.com
"
xmlns:prd="ww
w.ecomatcybers
hop.com/purcha
se">
targetNamespace
="www.ecomatcy
bershop.com/pur
chase"
xmlns:prd="www.
ecomatcybershop
.com/purchase">
targetNamespace
="www.ecomatcy
bershop.com"
xmlns:prd="www
.ecomatcybersho
p.com/purchase"
>
</xsd:complexType>
</xsd:schema>
However on executing the XSD, it does not work
properly. Identify the correct XSD code that you
need to create so the elements can be used in any
order of your choice.
1, <schema
SBM0 Joe has created the following XSD schema to
46
declare the reusable data types that stores product xmlns="http://
www.w3.org/2
id and order id:
001/XMLSche
ma"
targetNamespac
e="www.ecoma
tcybershop.com
/purchase"
xmlns:prd="ww
w.ecomatcybers
hop.com/purch
ase">
<schema
<include
<include
<include
<include
xmlns="http://www.w3.org/2001/XMLSchema" schemaLocation schemaLocation schema="potype. schema="potype.
="potype.xsd"/> ="potype.xsd"/> xsd"/>
xsd"/>
targetNamespace="www.ecomatcybershop.co <element
m/purchase">
name="PURCHA
SEORDER"
type="prd:puror
d"/>
<simpleType name="prstring">
<restriction base="string">
<pattern value="[P]{1}\d{3}"/>
</restriction>
<element
name="PURCHAS
EORDER"
type="prd:purord
"/>
<element
name="PURCHAS
EORDER"
type="prd:purord
"/>
<complexType
name="purord">
<sequence>
<element
name="PURCHA
SEORDER"
type="prd:puror
d"/>
<sequence>
<sequence>
<sequence>
<element
<element
<element
<element
name="ORDER" name="ORDER" name="ORDER" name="ORDER"
type="prd:ord"/ type="prd:ord"/ type="prd:ord"/> type="prd:ord"/>
>
>
</sequence>
</sequence>
</sequence>
</sequence>
</simpleType>
<attribute
<attribute
<attribute
<attribute
name="PRODID name="PRODID" name="PRODID" name="PRODID"
"
type="prd:prstri type="prd:prstrin type="prd:prstrin
type="prd:prstri ng"/>
g"/>
g"/>
ng"/>
<simpleType name="orstring">
<attribute
name="ORDERI
D"
type="prd:orstri
ng"
use="required"/
>
<restriction base="string">
</complexTyp
<attribute
name="ORDERI
D"
type="prd:orstri
ng"
use="required"/
>
<attribute
name="ORDERID"
type="prd:orstrin
g"
use="required"/>
<attribute
name="ORDERID
"
type="prd:orstrin
g"
use="required"/>
</complexType </complexType>
</complexType>
<restriction base="string">
<pattern value="[O]{1}\d{3}"/>
</restriction>
<sequence>
</simpleType>
<sequence>
</complexType>
<complexType
name="ord">
<sequence>
<sequence>
</schema>
Now, you want to create a schema that will use the
preceding XSD schema. Which of the following
code snippets is the correct code to reuse the
schema created by Joe?
</sequence>
</sequence>
</sequence>
</sequence>
</complexType>
</schema>
</schema>
</schema>
</schema>
1, Nested list
2, Unordered
list
1, Both,
Statement A
and B, are true
2, Both,
3, Statement A is
Statement A and true, B is false
B, are false
4, Statement A is
false, B is true
1, 1. Register an
account with
the Internet
Service Provider
2. Register a
domain name
2. Register a
domain name
3. Choose the
Services
3. Upload the
3. Register an
files on the Web account with the
Server
Internet Service
Provider
4. Upload the
4. Choose the
files on the Web Services
Server
3, Sequence
structure
4, Web structure
4, 1. Register a
domain name
4. Register a
domain name
3. Upload the
files on the Web
Server
4. Test the Web
site
1, Streaming is a
server-side
scripting
technology that
is used to create
dynamic and
interactive Web
pages
2, Streaming is 3, Streaming is a
the serverdatabase query
based
language
technology that
transmits audio
or video content
in a continuous
stream to the
user
4, Streaming is a
protocol
developed by
Netscape for
transmitting
private
documents via
the Internet
1, <TABLE
BORDER="5">
2, <TABLE >
3, <TABLE >
4, <TABLE
WIDTH="5">
<TR><TD>
Joe</TD><TD>
Martin</TD>
</TR>
<BORDER="5">
<BORDER
WIDTH="5">
<TR><TD>
Joe</TD><TD>
Martin</TD>
</TR>
</TABLE>
<TR><TD>
Joe</TD><TD>
Martin</TD>
</TR>
<TR><TD>
Joe</TD><TD>
Martin</TD>
</TR>
</TABLE>
</BORDER>
</BORDER>
</TABLE>
</TABLE>
2, He should
change the URI
specified with
the xmlns
keyword
3, In XML, you
cannot reuse a
schema
4, He should have
reused the
schema by using
the import
statement.
<include schemaLocation="potype.xsd"/>
<element name="PURCHASEORDER"
type="prd:purord"/>
<complexType name="purord">
<sequence>
<element name="ORDER" type="prd:ord"/>
</sequence>
<attribute name="PRODID"
type="prd:prstring"/>
<attribute name="ORDERID"
type="prd:orstring" use="required"/>
</complexType>
<complexType name="ord">
<sequence>
:
:
</sequence>
</complexType>
</schema>
But he is not able to reuse the schema. Identify the
reason for the same.
SBM0 Consider the following code snippet:
55
var xsdschemacache = new
ActiveXObject("Msxml2.XMLSchemaCache.6.0");
var xmlDoc = new
ActiveXObject("Msxml2.FreeThreadedDOMDocum
ent.6.0");
xmlDoc.validateOnParse=true;
xmlDoc.load("products.xml");
var
namespace=xmlDoc.documentElement.namespace
URI;
xsdschemacache.add(namespace,"products.xsd");
Analyze the code and identify which of the
following options is used to return the namespaceURI specified in the XML document.
1,
namespaceURI
2,
3, add
validateOnParse
4, xmlDoc