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

1 Answer

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 root elements are the form of the child element. The structure of the XML file should look like<root><child><subchild>....</subchild></child></root>e.g.<company><employee><ecode> 101 </ecode><name> Rahul </name></employee><employee><ecode> 102 </ecode><name> Sahil </name></employee><employee><ecode> 103 </ecode><name> Muskan </name></employee></company>You can see in the above example that the root element declared out here is <company> then comes the child element <employee> which in turn stores the <ecode> and <name> of the employee in the tags.

Related questions

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

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

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

Last Answer : True XML document must have one 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 : An XML document can have only limited number of child elements. -Technology

Last Answer : False XML document can have an unlimited number of child elements.

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 : 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 : Can same CSS document be used in multiple XML documents? -Technology

Last Answer : Yes, the same CSS document can be used in multiple XML documents.

Description : Which document is used to define the style of an XML document? -Technology

Last Answer : CSS is a text document (or stylesheet) that is commonly used to define the style and layout of an XML document.

Description : List the important points to create an XML document. -Technology

Last Answer : The points while creating an XML document are as follows:1. XML documents must have starting and closing tags.2. XML tags are case sensitive.3. XML elements must be properly nested.4. XML documents must have one root element.5. The values of XML attributes must be enclosed in double quotes.

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 the procedure to link a stylesheet with an XML document. -Technology

Last Answer : Using CSS with an XML DocumentTo link an XML document with a stylesheet perform the following steps:1. Create an XML document and save it as a file with the .xml extension.2. Create a stylesheet ... following is the XML document:AJan 24, 1987BlueBDec 15, 2009< Eyes >BrownNow, save it as test1.xml

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 : Consider the following XML document. Check this for well_ formedness. -Technology

Last Answer : The above XML document is not well-formed.The document suffers from two errors which are as follows:1. Improper nestingThe MiddleName element is opened inside the FirstName element, yet MiddleName is not closed before ... , which is incorrect. XML is case sensitive, thus the end tag of should be .

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 : XML document structure can be divided in which two parts? -Technology

Last Answer : XML document structure can be divided into two parts as follows:1. Well-formed XML document2. Valid XML documentA valid XML document means to follow several terms, such as follows:1. It is not ... for validation.The XML code is Srishti Programmer Engineering 5E Aditi Designer Marketing 19T

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 : An XML document can be viewed in a (a) Word processor (b) Web browser -Technology

Last Answer : (b) An XML document can be viewed in a Web browser.

Description : To link an XML document with a stylesheet, you need to (a) use the PI component in the XML document -Technology

Last Answer : (a) To link an XML document with a stylesheet, you have to use the PI component in the XML document.

Description : The XML document is like a (a) tree structure -Technology

Last Answer : (a) The xml document is like a tree structure.

Description : Valid XML document means -Technology

Last Answer : (c) Valid XML document checks errors and has DTD or schema and compiles to it.

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 : An XML document that follows the XML syntax is called a -Technology

Last Answer : (b) well-formed XML document

Description : ……… is used to define the structure of an XML document. -Technology

Last Answer : DTDis used to define the structure of an XML document.

Description : ………. refers to the preface to an XML document. -Technology

Last Answer : Prologrefers to the preface to an XML document.

Description : ……….. are the building blocks of an XML document and are represented by using tags. -Technology

Last Answer : Elements are the building blocks of an XML document and are represented by using tags.

Description : The combination of XML document, DTD and stylesheet is known as ………. . -Technology

Last Answer : The combination of XML document, DTD and stylesheet is known asXML document system.

Description : You can validate an XML document by using the XML validator and …………… . -Technology

Last Answer : You can validate an XML document by using the XML validator andXML parser.

Description : An XML document has both a ……….. structure and a ………….. structure. -Technology

Last Answer : An XML document has both aphysicalstructure and alogicalstructure.

Description : We need a/an ………….. to create and edit an XML document. -Technology

Last Answer : We need a/anXML parserto create and edit an XML document.

Description : ……… is a text document that is commonly used to define the style and layout of an XML document. -Technology

Last Answer : CSS is a text document that is commonly used to define the style andlayout of an XML document.

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 : 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 : What is XML document system how is it different from XML document or XML file -Technology

Last Answer : XML stands for Extensible Markup Language. It is a text-based markup language derived from Standard Generalized Markup Language (SGML).An XML document is a basic unit of XML information ... data. For example, database of numbers, numbers representing molecular structure or a mathematical equation.

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

Last 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 ... India The preceding code is not a well-formed document, since it does not contain aroot element.

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 : In all XML documents, the ………….. element is the parent of all other elements. -Technology

Last Answer : In all XML documents, the root element is the parent of all other elements.

Description : Which statement is true? (a) All XML elements must have a closing tag. -Technology

Last Answer : (d) All of the above

Description : The document that is used by XSLT to indicate, how to transform the elements of the XML document to another format is (A) HTML page (B) DOC type procedure (C) Style sheet (D) Stored procedure

Last Answer : (C) Style sheet

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 : Explain the usage of an XML parser. -Technology

Last Answer : XML parser is a software used to read, write and update to an XML document. An XML parser converts an XML document into an XML DOM object.

Description : Explain the utility of comments in XML. -Technology

Last Answer : A comment is a note or information that appears in the code of an XML document to help you understand the code better. Comments are not displayed in the output. They are not part of the program and therefore, are not parsed by the XML parser.

Description : Explain two softwares which are used to validate XML documents. -Technology

Last Answer : Two important software that validates or process XML documents are as follows:1. XML Validator is the software packages that check the XML document as per the specified DTD and give you feedback about the document. ... XML parsers are as follows:(a) SAXfSimple API for XML)(b) Expat(c) LT-XML etc.

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 : 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 : Vani, a class X student has recently completed her HTML course and just started learning XML. Help her in the following: -Technology

Last Answer : (i) Primary purpose of HTML is to design a webpage while XML is used to store and transport the data.(ii) Right(iii) Comments are added as notes or lines for understanding the purpose of an XML ... .Syntax for comments are as follows:(v)An XML document with correct syntax is called 'Well Formed'.

Description : A ........ is an initial document that shows where all text and graphic elements will be placed A. Comp B. DTP C. On screen D. Online

Last Answer : C. On screen

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 : What do you mean by XML file? -Technology

Last Answer : XML file or XML document is a component of XML document system which contains the real data and its semantics.