Dot Net
What is XSL?
Dec 7th
XSL (the eXtensible Stylesheet Language) is used to transform XML document to some other document. So its transformation document which can convert XML to some other document. For instance you can apply XSL to XML and convert it to HTML document or probably CSV files.
What is CDATA section in XML?
Dec 7th
All data is normally parsed in XML but if you want to exclude some elements you will need to put those elements in CDATA.
What is well formed XML?
Dec 7th
If a XML document is confirming to XML rules (all tags started are closed, there is a root element etc) then it’s a well formed XML.
Can you explain why your project needed XML?
Dec 7th
Remember XML was meant to exchange data between two entities as you can define your user friendly tags with ease. In real world scenarios XML is meant to exchange data. For instance you have two applications who want to exchange information. But because they work in two complete opposite technologies it’s difficult to do it technically. For instance one application is made in JAVA and the other in .NET. But both languages understand XML so one of the applications will spit XML file which will be consumed and parsed by other applications
You can give a scenario of two applications which More >
What is the difference between XML and HTML?
Dec 7th
XML describes data while HTML describes how the data should be displayed. So HTML is about displaying information while XML is about describing information.
What is DTD (Document Type definition)?
Dec 7th
It defines how your XML should structure. For instance in the above XML we want to make it compulsory to provide “qty” and “totalcost”, also that these two elements can only contain numeric. So you can define the DTD document and use that DTD document with in that XML.
If XML does not have closing tag will it work?
Dec 7th
No, every tag in XML which is opened should have a closing tag. For instance in the top if I remove </discount> tag that XML will not be understood by lot of application.
What is ROOT element in XML?
Dec 7th
In our XML sample given previously <invoice></invoice> tag is the root element. Root element is the top most elements for a XML.
