Why is XML important? |
Scalable: Since XML is not in a binary format you can create and edit files with anything and it's also easy to debug. XML can be used to efficiently store small amounts of data like configuration files (web.xml, application.xml, strutsconfig. xml etc) to large company wide data with the help of XML stored in the database. |
Post/View Answer
Post comment
Cancel
Thanks for your comment.!
Write a comment(Click here) ...
|
What is XML? | ||||||||||||||
XML stands for extensible markup language much like as a HTML. XML was designed to carry data, not to display data. XML loosely couples disparate applications or systems utilizing JMS, Web services etc. XML uses the same building blocks that HTML does: elements attributes and values. XML tags are not predefined. You must define your own tags. | ||||||||||||||
Describe the differences between XML and HTML? | ||||||||||||||
| ||||||||||||||
Is XML meant to replace HTML? | ||||||||||||||
No, they both go together one is for describing data while other is for displaying data. | ||||||||||||||
What is CDATA section in XML? | ||||||||||||||
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 XSL? | ||||||||||||||
XSL (the extensible Style sheet 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. | ||||||||||||||
Is XML case sensitive? | ||||||||||||||
XML tags are case sensitive. The tag | ||||||||||||||
| ||||||||||||||
What is DOM? | ||||||||||||||
A DOM (Document Object Model) defines a standard way for accessing and manipulating documents. The XML DOM defines a standard way for accessing and manipulating XML documents. The XML DOM views an XML document as a tree-structure. All elements can be accessed through the DOM tree. Their content (text and attributes) can be modified or deleted, and new elements can be created. The elements, their text, and their attributes are all known as nodes. | ||||||||||||||
Define DTD (Document Type definition)? | ||||||||||||||
DTD - Document Type Definition defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes. XML DTD is a rule book that an XML document follows. Once DTD is ready, you can create number of XML documents following the same rules specified in the DTD. DTD can be internal or external DTD. The internal DTD is included in the XML document, while external DTD exists outside the content of the documents. | ||||||||||||||
Explain DTD and schema? | ||||||||||||||
A DTD provides a list of the elements, attributes, comments, notes, and entities contained in an XML or HTML document and indicate their relationship with each other. | ||||||||||||||
| ||||||||||||||
What are the standard ways of parsing XML document? or What is a XML parser? | ||||||||||||||
XML parser sits in between the XML document and the application who want to use the XML document. Parser exposes set of well defined interfaces which can be used by the application for adding, modifying and deleting the XML document contents. | ||||||||||||||
In What scenarios will you use a DOM parser and SAX parser? | ||||||||||||||
If we do not need all the data from the XML file then SAX approach is much preferred than DOM as DOM can quiet memory intensive. In short if you need large portion of the XML document its better to have DOM. | ||||||||||||||
Define XPATH and what is XSLT? | ||||||||||||||
XPATH is an XML query language to select specific parts of an XML document. Using XPATH we can address or filter elements and text in a XML document. For instance a simple XPATH expression like "book/price" states find "price" node which are children of "Invoice" node. XSLT is a rule based language used to transform XML documents in to other file formats. XSLT are nothing but generic transformation rules which can be applied to transform XML document to HTML, CS, Rich text etc. | ||||||||||||||
What is SOAP and how does it relate to XML? | ||||||||||||||
The Simple Object Access Protocol (SOAP) uses XML to define a protocol for the exchange of information in distributed computing environments. SOAP consists of three components: an envelope, a set of encoding rules, and a convention for representing remote procedure calls. Unless experience with SOAP is a direct requirement for the open position, knowing the specifics of the protocol, or how it can be used in conjunction with HTTP, is not as important as identifying it as a natural application of XML. | ||||||||||||||