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

1 Answer

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 that includes a sequence of markup characters that cannot be parsed or are invalid cannot be well-formed. The following points are to be kept in mind for a valid XML document:1. The document must contain at least one element2. The document must have a root elementA root element is a unique element in the XML document, which contains the complete document.3. The element must have the opening and the closing tagsTo close a tag, you need to prefix the forward slash with the normal tag.e.g.4. XML tags must be closed properlyThere must be a proper closing tag. In XML, empty tags must end with the following slash.e.g.5. XML elements must be properly nestedThe parent element has to be opened before the child element and closed after the child element.This code is not well-formed because the root element (College) is closed before the parent element (Student).6. XML tags are case sensitiveXML tags are case sensitive means the opening and ending tags must be in the same case.e.g.7. XML attribute values should be in double quotation marksThe attributevalue in an XML document should be enclosed in proper quotes.e.g.2. Valid XML DocumentA valid XML document is .not only a well-formed document but as well as they also checked error against a DTD or schema. DTD is a set of rules that define what tags appear, what value those tags may contain and how the tags are related to each other in an XML document. Validation can be done only if the XML document has valid DTD. When an XML document is checked or parsed according to a particular structure or guidelines, the process is known as validation of the document.

Related questions

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 : 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 : 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 : Which of the following XML fragments are well_formed? -Technology

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

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

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

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 : Valid XML document means -Technology

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

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 : Difference between XML and SGML? -Technology

Last Answer : XMLSGMLXML is a markup language.SGML is a meta-language used todefine and describe generic markup language.It does not include complexand optional features of SGML.It is complex and ... the data andtransfers data between applications.It allows you to define and createplatform-independent files.

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 : Difference between EDI and XML ? -Technology

Last Answer : EDIXMLEDI (Electronic DataInterchange) is acollection of standards,formats and file layout.XML is an emerging standarddesigned to simplify Web-basedE-Commercetransactions betweencomputer application.EDI enables ... XML allows you to createcustom tags to present yourdocument in a structured format.

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 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 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 : What can you say about the following statements? I. XML tags are case-insensitive. II. In JavaScript, identifier names are case-sensitive. III. Cascading Style Sheets (CSS) cannot be used with XML. IV. All well-formed ... IV are false. (3) only I and III are false. (4) only II and IV are false. 

Last Answer : Answer: Marks to all

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.

Description : Write the components of an XML file in terms of logical structure. -Technology

Last Answer : An XML file contains:1. an optional prolog2. a data instance

Description : What does XML parser do? -Technology

Last Answer : An XML parser basically checks whether a document is following XML standard or not.

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 : What does it mean when we say that XML tags are case sensitive? -Technology

Last Answer : The case sensitivity of XML tags means the opening and closing tags must be in the same case. The following code is an example of a well-formeddocument, where the opening and closing tags are in the same case, i.e.Amit

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 : Name some languages, which are derived from XML. -Technology

Last Answer : Some languages are as follows:1. Ink Markup Language (InkML)2. Business Narrative Markup Language (BNML)3. Financial Product Markup Language (FPML)4. Virtual Human Markup Language (VHML) .5. ... Language (ADML)6. Artificial Intelligence Markup Language (AIML)7. Chess Markup Language (ChessML) etc.

Description : Create XML markup to represent a message sent on 7 June, 2014 to Amit and Saurabh by Mohit. -Technology

Last Answer : Mohit Amit Saurabh Submitted Successfully

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 the full form of 1. XML 2. DTD 3. SGML 4. CSS -Technology

Last Answer : Full form of given terms are as follows:1. XML Extensible Markup Language2. DTD Document Type Declaration3. SGML Standardised Generalised Markup Language4. CSS Cascading Style Sheet

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 : 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 : Draw the XML tree for code given below: -Technology

Last Answer : The XML tree is

Description : Draw the XML tree for the code given below: -Technology

Last Answer : The XML tree is

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

Last Answer : ]>

Description : Draw the XML tree for the code given below -Technology

Last Answer : The XML tree is

Description : Draw the XML tree for the code given below_ -Technology

Last Answer : The XML tree is

Description : Draw the XML tree for the code given below: -Technology

Last Answer : The XML tree is

Description : XML uses (a) Only 5 tags -Technology

Last Answer : (c) XML uses user-defined or custom tags.

Description : XML was not designed to (a) display Web pages -Technology

Last Answer : (a) XML was designed to store and carry data, not to display Web pages.

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 : 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 : Which is not a correct name for an XML element? -Technology

Last Answer : (b) is not a correct name for an XML element.

Description : XML allows you to (a) create new tags -Technology

Last Answer : (b) XML allows you to arrange your tags in any order.

Description : Which one of these is correct syntax of the declaration, that defines the XML version? -Technology

Last Answer : (a) is a correct syntax of the declaration.

Description : The way of describing XML data is -Technology

Last Answer : (c) XML uses a DTD to describe XML data.