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

1 Answer

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 viewed directly and need some proper stylesheet files.A well-formed document means to follow several generic rules, such as follows:1. XML document must contain at least one element.2. All tags must have the opening and closing tags as these XML tags are case sensitive.The XML code is<?xml version = '1.0' encoding = 'UTF-8'?><Travels> <Travel><Designation> Singapore </Designation><Cost> 200000 </Cost><No_of_days> 8 </No_of_days><Mode_of_trans> Aeroplane </Mode_of_trans></Travel></Travel><Designation>Shimla</Designation><Cost> 10000 </Cost><No_of_days> 4</No_of_days><Mode_of_trans> Bus </Mode_of_trans></Travel></Travels>

Related questions

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 : 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 : 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 : 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 : Mention any two main differences between HTML and XML. Also mention any two main features of XML for which it’s used extensively now a days. -Technology

Last Answer : Two main differences between HTML and XML:HTML is used to display data and to focus on formatting of data, whereas XML is used to describe data and focus on what data is.HTML tags are predefined, ... for which it's used extensively nowadays:XML is used to store data.XML is used to exchange data.

Description : Mention any two main differences between HTML and XML. Also mention any two main features of XML for which it’s used extensively now a days. -Technology

Last Answer : Two main differences between HTML and XML:HTML is used to display data and to focus on formatting of data, whereas XML is used to describe data and focus on what data is.HTML tags are predefined, whereas ... it's used extensively now a days:XML is used to store data.XML is used to exchange data

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 : 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 : 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 : Write the DTD for the following XML document: -Technology

Last Answer : ]>

Description : Difference between HTML and XML? -Technology

Last Answer : HTMLXMLHTML tags arepredefined.XML tags are notpredefined.HTML is case insensitive.XML is case sensitive.HTML is markuplanguage thatcreates the formand appearance of the web page.XML is neither aprogramming nor apresentation language.

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 : HTML and XML are -Technology

Last Answer : (a) Both HTML and XML are markup languages.

Description : What makes XML more powerful than HTML? -Technology

Last Answer : (c) XML is more powerful than HTML because we can define our own tags for different uses in XML.

Description : Extension of an XML files is .html. -Technology

Last Answer : False html is the extension of HTML file. An XML file extension is .xml.

Description : Both HTML and XML are markup language used to format data. -Technology

Last Answer : False XML is used to describe data, while HTML is used to format data.

Description : HTML is about displaying information while XML is about describing information. -Technology

Last Answer : True HTML was designed to describe data with focus on how data look while XML was designed to describe data with focus on what data is.

Description : XML uses (a) Only 6 tags (b) Predefined tags (c) Custom tags (d) HTML tags -Technology

Last Answer : XML usesCustom tags

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 : Tamanna needs to store and transport the data. She should use HTML or XML? -Technology

Last Answer : She should use XML.

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 : 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 : 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 : 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 : 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 : 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 : 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 : 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 : Name the root element in the following XML document: -Technology

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

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 : 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 : 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 : 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 : XML document must have one root element. -Technology

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

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.