Difference between XML and HTML
Write five difference between XML and HTML
1)Shell executable doest support application domain.
2)True,in .Net there is no deterministic destruction
3).net runtime is having two types of isolation.
XSNL(XML search neutral language) is a language which acts between the meta search interface and the targeted system, it is built to be as flexible and fine grained as possible.
It is used for the development of an advanced meta search engine specialized in newspaper news.
What is the relationship between XML and sgml? Does XML replace sgml or is it a subset of sgml?
SGML is the basis XML and HTML and provides a way to define markup languages and sets the standard for their form.SGML passes structure and format rules to markup languages.
XML is a subset of SGML.It is a meta language and is used to define other markup languages.
What is Microsoft XML?
It is a service which enables the developers to create interoperable XML applications on all platforms of XML 1.0.
What are XML attributes and elements? Explain with an example?
In the first example sex is an attribute. In the last, sex is an element. Both examples provide the same information.Code
<person sex="female"> <firstname>Anna</firstname> <lastname>Smith</lastname> </person> <person> <sex>female</sex> <firstname>Anna</firstname> <lastname>Smith</lastname> </person>
Consider the following XML code snippet:
What are the differences between sax and dom parsers?
Answered by: prasanna_b2001@yahoo.com
Member Since Dec-2005 | Answered On : Dec 19th, 2005
Both SAX and DOM are used to parse the XML document. Both has advantages and disadvantages and can be used in our programming depending on the situation
SAX:
1. Parses node by node
2. Doesnt store the XML in memory
3. We cant insert or delete a node
4. Top to bottom traversing
DOM
1. Stores the entire XML document into memory before processing
2. Occupies more memory
3. We can insert or delete nodes
4. Traverse in any direction.
If we need to find a node and doesnt need to insert or delete we can go with SAX itself otherwise DOM provided we have more memory.
Prasanna Balaraman.
The SAX parser we can parse it by tag by tag, SAX Parser will not store in Memory
Where as in DOM parser the Document will be read fully and store it in Memory and Start Parsing.
The main difference between DOM and SAX is in the representation of the XML document they use. DOM uses an in-memory tree-like structure, whereas, SAX uses linear event driven approach.
How do you check if a given XML file is valid?
Open the file with Internet Explorer.
What it is math ml?
Mathematical Markup Language (MathML) is an application of XML for describing mathematical notations and capturing both its structure and content.
What is the use of CSS in XML document? How will you create CSS for a particular XML file?
Firstly this is the way we can refer to the CSS file created for the existing xml document. "xml physics chemistry mathematics And here is my CSS - a text file sav...
Is it necessary to validate XML file against a dtd? Justify
No it is not mandatory to use DTD always.The preferred approach is to validate XML documents against XML schema definitions (XSD schemas). However, you can also validate XML against DTD's or XML-D...
What is xpath?
Xpath tells where exactly a particular node is located in the XML document. Its structure(format) resembles that of a any folder structure in windows.For e.g. To locate a file named "Test.txt&quo...
XPath describes where the items are located in a xml files For Example<employees><name>XYZ</name>----path for this is employees/name<address><street address> 3 rd mg road...
Which of the following is correct q) readXML method belongs to the class of .............. Namespacea)system.Datab)system.Data.Sqlclientc)system.Xmldsystem.Data.XML
System.Data Namespace
System.Data
What are the different kind of parsers used in XML?
There are 2 parsers:1) DOM (Document object model): This will interpret Complete XML document.Microsoft major concentration is DOM Parser.2) SAX Parser (Simple Aplication programming Interface for XML...
XML Parser is nothing but a interface between user and XML Document.
XML Parsers are divided into 2 types
1) DOM (Document Object Module)
2) SAX (Simple API for XML)
What are the different kinds of tags available in XML?
What are the major features of XML?
XML is used for describing and transform the data across different platforms. It is in simple text format. It is completely proprietary.
Compatible with the existing standards, Html,...
What is a cdata section in XML?
CDATA is used to store plain text or string values. It is commonly used with implied attributes, which allows user to define their own values. For example, <! ATTLIST Student LastName (CDATA) #IMPLIED>
CDATA in XML is the character data is is not parsed by the XML Processor. If there is a section in the document that you do not want the XML processor to parse, then it can be enclosed in
<![CDATA[ ......................]]>
The purpose of a DTD (Document Type Definition) is to define the legal building blocks of an XML document.
DTD defines the document structure with a list of legal elements and attributes.
Dtd is document type definition used to building block and it is the set of the rule and document information.
Why this parser needed exactly over HTML or JSP pages
Why this parser needed exactly over HTML or JSP pages, these two are enough for viewing the page. Can I know more sophisticated reasons from u?
How do you load data from XML file to a Oracle table?
This is from XML to sqlserver
exce sp_xml_preparedocument @inthandle int output,@xmldocument
select * from openxml(@inthandle,'/root/customer',2)
with (customerid varchar(10),
contactname varchar(20))
exec sp_xml_removedocument @inthandle
*In HTML sequence of tags does not matter.
*But in XML sequence of tags matters. will produce an error.Xml is extensible mark up language
Html is hypertext mark up language