XML Multiple choices


Total available count: 49
Subject - Web Development
Subsubject - XML

XML preserves white spaces


 

 

 

 



B


Solution:-

XML preserves white spaces: The xml:space="preserve" attribute is common in some XML documents.
When xml:space is used on an element with a value of preserve, the whitespace in that element's content must be preserved as-is by the application that processes it. The whitespace is always passed on to the processing application, but xml:space provides the application with a hint regarding how to process it.

Take a look at the following example:

<root xml:space="preserve">
 <test> Slight Book is great website.</test>
</root>

 




Next 5 multiple choice(s)

1

 Which statement is true?

2

Is this a "well formed" XML document?
<?xml version="1.0"?>
<to>Hyderabad</to>
<from>Nellore</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>

3

 Is this a "well formed" XML document?  <?xml version="1.0"?>
<note>
<to>Hyderabad</to>
<from>Nellore</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>

4

What does DTD stand for?

5

What is the correct syntax of the declaration which defines the XML version?

Comments