25+ XML Interview Questions for Development & Database - Bipin Web Academy


Post Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

Thursday, 14 February 2019

25+ XML Interview Questions for Development & Database

XML Interview Questions for Development & Database

XML Interview Questions

1. What is XML?

XML represents eXtensible Markup Language. It is a straightforward and adaptable markup language. It is known as widespread language for information on the web in light of the fact that XML reports can be made and utilized in any language. It is widespread standard for data trade.  XML innovation encourages you to make your own markup language.

2. How XML is different from HTML?

HTML represents Hyper Text Markup Language while XML represents eXtensible Markup Language.

3. What is the meaning of version in XML?

Form is a label used to indicate which variant of XML is utilized.

4. What are the benefits of XML?

These are the fundamental advantages of utilizing XML. 
  1. Effortlessness: Very simple to peruse and comprehend the data coded in XML. 
  2. Receptiveness: It is a W3C standard, embraced by programming industry showcase pioneers. 
  3. Extensibility: It is extensible in light of the fact that it has no settled arrangement of labels. You can characterize them as you need. 
  4. Self-spellbinding: XML records needn't bother with extraordinary outline set-up like conventional databases to store information. XML reports can be put away without such definitions, since they contain metadata as labels and qualities. 
  5. Versatile: XML isn't in parallel organization so you can make and alter records with anything and it is additionally simple to investigate. 
  6. Quick access: XML records are orchestrated in various leveled structure so it is nearly quicker.

5. What is XML DOM?

DOM represents Document Object Model which is utilized to portray the legitimate structure of XML record. It is a various leveled model that gives an approach to get to and control a XML report. DOM techniques and items can be utilized with any dialects like C#, VB, JavaScript and VB Script.

6. What is SAX in XML?

SAX represents Simple API for XML. It is a successive access parser. It is a straightforward API for XML which gives a system to perusing information from a XML report. It is an option of DOM. DOM works on the records as entire, SAX parsers work on each bit of the XML archive consecutively. SAX has no formal particular like DOM and devours less memory. In any case, it very well may be utilized to peruse the XML record just not compose.

7. What is XSNL?

XSNL is a XML seek unbiased language. This language demonstrations between the meta look interface and focused on framework.

8. What is a well formed XML document?

A grammatically right archive is called very much framed XML record. A very much shaped XML archive must pursue the XML? fundamental standards of punctuation:
  • It must have an end tag. 
  • The end label should precisely coordinate the open tag: XML is case touchy. 
  • All components ought to be incorporated inside a solitary root tag. 
  • Kid components must be shut inside parent tag.
  • What is a valid XML document?
  • A fundamentally right component is known as a substantial XML report. It ought to pursue some predefined standards of a particular kind of archive. These guidelines decide the kind of information that each piece of the record can contain. These principles can be composed by the creator of a XML archive or somebody other.

9. What is DTD?

  • DTD stands for Document Type Definition. It defines a leading building block of an XML document. It defines:
  • Names of elements
  • How and where they can be used
  • Element attributes
  • Proper nesting

10. How can you apply a DTD to an XML document?

To apply a DTD to a XML report, you can: 
  • Utilize the DTD component definition inside the XML report itself. 
  • Give a DTD as a different record and reference its name in XML archive.
  • What are the basic rules to write XML document?
  • You ought to consider the accompanying standards to compose a XML archive. 
  • It ought to have a root component. 
  • All labels must be shut. 
  • Spaces are not permitted in label names. 
  • All labels must be settled appropriately. 
  • XML labels are case touchy. 
  • Utilize the characteristic qualities inside statements. 
  • Whitespace is protected in XML.

11. What is XSL?

XSL represents Extensible Stylesheet Language. It is a language for communicating templates. These templates resemble CSS which depicts how to show a XML archive of a given kind

12. What is XPath in XML?

XPath is an innovation utilized in XML. It is utilized to recover components from XML archives. XPath articulations can be utilized to find and recover components, characteristics and qualities from XML records in light of the fact that XML archives are organized. It is like SQL. As SQL is utilized to recover information from database, XPath is utilized to recover information from XML.

13. What is XSLT?

XSLT is a prominent XML innovation which is utilized to change one XML document to other organization like HTML and so forth. XSLT resembles a language which has its very own linguistic structure, capacities and administrator to change XML archives. XSLT is additionally used to show information present in XML records as HTML pages.

14. What is the difference between XML DTD and XML schema or XSD?

XSL represents Extensible Stylesheet Language. It is a language for communicating templates. These templates resemble CSS which portrays how to show a XML record of a given kind.
  • DTD represents Document Type Definition though XSD represents XML Schema Definition. 
  • DTD does not bolster namespaces. It has its own arrangement of catchphrases to characterize a construction while XSD utilizes its own arrangement of namespaces and components to characterize the outline. 
  • DTD is the antecedent of XML pattern while XML outline is another innovation, some XML parser don't bolster it yet.

15. Is XML meant to be a replacement of HTML?

No, the two dialects have their very own determination and utilized for various purposes. XML is utilized to depicts information while HTML center around how to show information.

16. What is the difference between simple element and complex element?

  • In XML, basic components are content based components. It contains less properties, youngster components, and can't be left unfilled. 
  • Be that as it may, complex components can hold various properties and components. It can contain extra sub components and void component too.
  • Define the concept of XPOINTER.
  • XPOINTER is utilized to point information inside XML archive. It is utilized to find the specific piece of the XML record. It is a W3C suggestion.

17. What is XML data binding? Why is it used?

XML information restricting is the way toward speaking to the data in a XML report as an item in PC memory.
XML information restricting is utilized to short your improvement exertion, rearrange support, increment unwavering quality. It spares your improvement time and cash. It makes working with XML information natural.

18. What is XML encoding error?

There are two kinds of XML encoding blunders:
  • An invalid character was found in content substance. 
  • Changing from current encoding to indicated encoding not upheld. 
  • These mistakes happen on the grounds that XML record can contain non ASCII characters like Norwegian and French. These mistakes can be stayed away from by determining the XML encoding Unicode.

19. What are the different XML API's?

Tree-based API: It accumulates a XML report in a tree like structure and loads it into the memory. You can navigate and change the tree structure. Tree based API's are helpful for a wide scope of uses. Case of tree-based API is DOM parser.
Occasion based API: An occasion based API gives the reports to an application about the parsing occasion. It utilizes a lot of inherent get back to capacities. Case of occasion based API is SAX parser.

20. What is XmlReader class? Explain.

The XmlrReader class speaks to a peruser that gives quick, noncached, forward-just access to XML information. You have to import the accompanying namespaces to work with XmlReader class in .NET.
In VB:
Imports System.Xml
In C#:
utilizing System.Xml;

21. What is the difference between CDATA and PCDATA?

CDATA implies unparsed character information though PCDATA implies parsed character information.

22. What is XQuery?

XQuery is an inquiry language that is utilized to recover information from XML archive.

23. What is XML Namespace?

A namespace is a certified name that is related with the DTD/Schema area .
An archive may have copy components and qualities. In this way, the namespace characterizes an approach to look at copy components and trait names.

24. What is SGML?

SGML is an immense and incredible summed up markup language that is utilized to characterize portrayals for the structure of a few electronic reports.

25. Can we use graphics in XML?

Indeed, designs can be put away in XML document by utilizing XLink and XPointer. It bolsters designs like GIF, JPG, TIFF, PNG, CGM, EPS, SVG.
Is XML case sensitive?
Yes, XML is a case sensitive language.

Post Top Ad

Responsive Ads Here