A well_formed document must have a root element. Explain with an example. -Technology

1 Answer

Answer :

To create a well-formed XML document, it is necessary for it to have a root element. A root element is a unique element that contains all other elements in the XML document.The XML document cannot contain more than one root element.The following code is an example of a well-formed document:<address><city> Delhi </city><state> Delhi </state><country> India </country></address>Consider the same code written in the following way:<city> Delhi </city><state> Delhi </state><country> India </country>The preceding code is not a well-formed document, since it does not contain aroot element.

Related questions

Description : State whether the following XML document is well_formed or not Mapoj -Technology

Last Answer : The preceding XML document is not well-formed because it contains two root elements. An XML document contains only one root element.

Description : Write two points of difference in HTML and XML. Write three points of well_formed XML document. -Technology

Last Answer : Two points of difference between HTML and XML follows:HTMLXMLHTML is a markup language thatcreates the form andappearance of the Web page.XML is a text-based markup language ... and closing tags.3. XML attributes values, should be in double quotation marks.TableWood751stChairPlastic85IInd

Description : Write two points of differences between XML and HTML. What is meant by a well_formed XML document -Technology

Last Answer : The differences between XML and HTML are as follows:1. HTML has predefined tags while XML has user-defined tags.2. HTML document can be viewed directly by the Web browser while XML document cannot be ... tags are case sensitive.The XML code is Singapore 200000 8 Aeroplane Shimla 10000 4 Bus

Description : Is this, a “well_formed” XML document? -Technology

Last Answer : (b) No, because is not a correct element and element is not closed.

Description : Well_formed XML document means -Technology

Last Answer : (d) Well-formed XML document must contain one or more elements and root element must contain all other elements.

Description : A valid XML document that follows all grammar rules is well_formed document. -Technology

Last Answer : True A well-formed XML document means that the document has the correct XML syntax and follows proper grammar rules.

Description : XML document must have one root element. -Technology

Last Answer : True XML document must have one root element.

Description : Explain the difference between a well_formed and a valid XML documents. -Technology

Last Answer : 1. Well-Formed XML DocumentsA well-formed XML document means that document has the correct XMLsyntax.The XML document that follows XML grammar rules is called well-formed document. A document ... according to a particular structure or guidelines, the process is known as validation of the document.

Description : Which of the following XML fragments are well_formed? -Technology

Last Answer : (b) < element attribute = “value” > all well-formed.

Description : Explain with a help of an example, how root elements are placed in a XML document? -Technology

Last Answer : XML documents must contain one element that is the parent of all other elements. This element is called the root element. The root element encloses all other elements in XML. All other elements inside the ... then comes the child element which in turn stores the and of the employee in the tags.

Description : Name the root element in the following XML document: -Technology

Last Answer : (c) father is the root element.

Description : Valid XML document means (a) The document has one root element -Technology

Last Answer : Valid XML document meansThe document has a DTD and complies to it

Description : The style element holds the document for setting (a) font, color and alignment -Technology

Last Answer : (b) Because they are used to give a better look and feel to the Web documents.

Description : Write an XML document that marks up the following data: All these must be rendered -Technology

Last Answer : Raj Kumar Delhi Pankaj Mumbai Rahul Sharma Delhi Praveen Noida

Description : Names in XML document must start either with a letter, number or underscore. -Technology

Last Answer : False Names in XML must start either with a letter or underscore character.

Description : Why are comment included in HTML document? With the help of an example, -Technology

Last Answer : Comments are inserted in HTML code with the help of tag. To insert the text as a comment, type the text between tag, then that text will be ignored by the browser and invisible for the user.e.g.This is a book

Description : Write the DTD for the following XML document: -Technology

Last Answer : ]>

Description : A root element is (a) a bridge between HTML and XML (b) the parent of all other elements -Technology

Last Answer : (b) A root element is the parent of all other elements.

Description : The root element is a parent element of all other elements in data instance. -Technology

Last Answer : True The root element is an element that contains all other elements in XML document.

Description : i. Are these tags part of HTML code or XML code? ii. Identify the root element. -Technology

Last Answer : XML codei. Companyii. name, deptiii. eid, deptid

Description : All XML documents must have one.......... element. -Technology

Last Answer : All XML documents must have one root element.

Description : Explain the structure of XML document. -Technology

Last Answer : Structure of XML- File/DocumentEvery XML document includes both physical and logical structure which are as follows:1. Physical StructureIt contains the actual data used in a document. The basic storage ... which is the base for the logical structure.The structure of the document of example code:

Description : Explain the purpose of AutoFormat feature of Word 2007. How it can be used in a Word document? -Technology

Last Answer : Auto-formatting feature of Word processing tool allows the automatic formatting of certain kinds of text while' typing. By selecting certain formatting options, theMicrosoft Office 2007 system programs can automatically ... .7. Click Add button.8. Click OK button.9. Close the Symbol dialog box.

Description : A digital document issued to a Website by a certification authority on the Internet is called ______ -Technology

Last Answer : A digital document issued to a Website by a certification authority on the Internet is called Digital Certificate Explanation : A digital certificate is an electronic file that is issued by a certification authority to Websites.

Description : HTML is a markup language for describing Web document. HTML uses (a) pre_specified tags (b) user defined tags -Technology

Last Answer : (d) HTML uses fixed tags defined by the language.

Description : The address of location of the document on WWW is called ……….. . -Technology

Last Answer : The address of location of the document on WWW is called URL.

Description : How can a Word document be sent along with an E_mail? -Technology

Last Answer : By attaching the Word file with an E-mail.

Description : Why do we insert comments in an HTML document, even though they are not displayed on a Web page? -Technology

Last Answer : So, that user will be able to understand coding effects and meaning.

Description : Where can a comment be placed in an HTML document? How is it useful? -Technology

Last Answer : Comments are inserted in HTML code with the help of tag. To insert the text as a comment, type the text between tag, then that text will be ignored by the browser and invisible for the user.e.g.This is a book

Description : Which of the following tag identifies the document as an HTML document? (a) -Technology

Last Answer : (a) tag identifies the document as an HTML document.

Description : Which attribute of tag specifies the color of visited links in a document? (a) vlink (b) alink -Technology

Last Answer : (a) vlink attribute specifies the color of visited links in an HTML document.

Description : tag is used to define document body. -Technology

Last Answer : False tag is used to define the document head.

Description : tag is one of the structural tags of HTML document. -Technology

Last Answer : True HTML provides four structural tags, these are as follows:, , , .

Description : All HTML document contains only tag. -Technology

Last Answer : False All HTML document contains various tags.

Description : topmargin is used to specify the distance between the top of the document and top of the browser window. -Technology

Last Answer : True topmargin is an attribute of the tag, which is used to specify the distance between the top of the document and top of the browser window.

Description : When creating a Web document, which unit is used to express an image’s height and width? (a) Centimetres (b) Pixels -Technology

Last Answer : (b) Image’s height and width unit are expressed in pixels or in percent form.

Description : The …………. tag is considered to establish a hypertext relationship between the current document and another URL. -Technology

Last Answer : The tag is considered to establish a hypertext relationship between the current document and another URL.

Description : The …………….. attribute of tag is used to provide information or a title for the linked document or Web page. -Technology

Last Answer : The title attribute of tag is used to provide information or a title for the linked document or Web page.

Description : Hyperlinks can also be created for links within the same document. Linking -Technology

Last Answer : False Linking within the same document is called internal linking.

Description : The color of the hyperlinks in an HTML document can be changed. -Technology

Last Answer : True We can change the color of hyperlinks in HTML document.

Description : It is not possible to create link within current document. -Technology

Last Answer : False You can link various sections of the current document together, which is called internal linking.

Description : You should include a mailto function in the body of your document to allow user to respond to your Web page. -Technology

Last Answer : True The mailto function is used to send E-mails from the Website.

Description : The name attribute of the tag allows the user to create links within the same document. -Technology

Last Answer : True Because name attribute defines a name of a section in a document.

Description : It is a rectangular area showing an application, document, contents of a folder or a dialog box. (a) Workbook (b) Window -Technology

Last Answer : (b) Window is a rectangular area, which shows an application, document, contents of a folder or a dialog box.

Description : ……………. means that a printed document is exactly a copy of what you see on screen. -Technology

Last Answer : WYSIWYGmeans that a printed document is exactly a copy of what you see on screen.

Description : The scroll bar feature comes with scroll arrows that allow you to move easily through a document. -Technology

Last Answer : TrueDepending on the size of a window, the entire application may not be visible. So, it is the scroll bar which makes the whole screen visible for you by using scroll arrows.

Description : What is the use of ruler in MS_Word 2007 document? -Technology

Last Answer : Ruler is used to set tabs, indents and margins for a document.

Description : How can you print your document via Quick Print feature of printing? -Technology

Last Answer : To print a document via Quick PrintClick Microsoft Office Button —> Print —> Quick Print.

Description : Write the steps to create a new document. -Technology

Last Answer : Steps to create a new blank document are as follows:(a) Step 1: Click the Microsoft Office button.(b) Step 2: Select New, the New Document dialog box will appear as shown below:(c) Step 3: ... (It will be highlighted bydefault).(d) Step 4: Click Create button, a new blank document will appear.

Description : How to save a document as Word 97_2003? -Technology

Last Answer : Steps to save a document as a Word 97-2003 are as follows:(a) Step 1: Click the Microsoft Office button.(b) Step 2: Select Save As -> Word 97-2003 Document. The Save As dialog box will appear.(c) Step 3 ... d) Step 4: Enter a name for the document in File name: box.(e) Step 5: Click the Save button.