Contacts

How to use an XML file. Why do I need an XML language? XML data transformation

EXTENSIBLE Markup Language (XML). These are really simply text files that use custom tags to describe the structure and other document functions.

What is XML

Xml - This is the markup language created by the World Wide Web Consortium Consortium (W3C) to determine the syntax of document coding that can be read by people and machines. It does it with the help of tags that define the structure of the document, as well as how the document should be stored and transported.

The easiest way to compare it with another markup language, with which you can be familiar - language hypertext markup (HTML) used to encode web pages. HTML uses a predefined set of markup symbols ( short codes) that describe the content format on the web page.

However, the difference between XML is that it is expandable. XML has no predefined markup language, like HTML. Instead, XML allows users to create their own markup symbols to describe content, forming an unlimited and self-determined set of characters.

In essence, HTML is a language that focuses on the content representation, while XML is a selected data description language used to store data.

XML is often used as the basis for other formats of documents that hundreds. Here are a few that you can find out:

  • RSS and ATOM describe how applications must process web channels.
  • Microsoft .NET uses XML for its configuration files.
  • Microsoft Office. Uses XML as the basis for the document structure.

Thus, if you have an XML file, it does not necessarily tell you for which application it is intended. However, you do not need to worry about it, if you do not develop XML files.

How to open an xml file

There are several ways to open the XML file directly. You can open and edit them using any text editor, view them using any web browser or use the website that allows you to view, edit and even convert them to other formats.

Use a text editor when regular with XML

Since XML files are simply text files, you can open them in any text editor. However, many text editors, such as NotePad, are simply not intended to display XML files with their the right structure. This can be useful for quickly acquainted with the content of the XML file. But, there are more convenient tools for working with them.


Using a web browser to view the XML file

If you do not need to edit an XML file, but you just need to view the contents, your browser can cope with this task. Moreover, your web browser is most likely already configured as standard remedy View XML files. Thus, double-clicking the XML file must open it in the browser.

If not, you can right-click the file to find options for opening it with any other application. Simply select your web browser from the list of programs.

When the file opens, you must see well-structured data. It is not so beautiful as the color view that you get in NotePad ++, but much better than notepad.

Using an online editor for XML files

If you want to edit a random XML file and do not want to download a new text editor, or you need convert the XML file to another formatThere are several decent online XML editors available for free.

TutorialSpoint.com, XmlGrid.Net and CodeBeautify.org - allow you to view and edit XML files. After editing is completed, you can download the changed XML file or even convert it to another format.

For example, use CodeBeautify.org. The page is divided into three sections. On the left is the XML file with which you are working. In the middle you will find several functions. On the right you will see the results of some options that you can choose.

For example, in the figure below, there is our full XML file below, and the results panel displays a tree view in the form of a tree, as we pressed the Tree View button in the middle.

Use the Browse button to download the XML file from your computer or the Load URL button to extract XML from the Internet source

The Tree View button displays data in a well-formatted tree structure on the results panel, with all tags allocated by orange color, and the attributes to the right of the tags.

Beatify displays your data in a neat, easily readable form.

MINIFY button displays your data using the smallest number of spaces. This feature will place each each piece of data on one line. This will be useful when trying to make a file less, which will save some space.

And, finally, you can use the XML to JSON button to convert XML to JSON format, and the Export to CSV button to save the data in the form of the values \u200b\u200bdivided by commas, or the download button to download any changes you made in a new XML file .

Frequently often many users of modern computer Systems and software products of different types Faced with files having extension .xml. Many simply do not imagine what this document is how to open it. Now it will be considered, at the same time find out what he represents and for what is needed.

What is the XML file

Let's start, perhaps, with the fact that, from the point of view of modern computer technology And the programs used to create documents of this type is a text file in which the universible Markup Language commands are prescribed (Extensible Markup Language), which strongly resembles a well-known HTML markup agent.

As a rule, the XML file contains general information About any object that is expressed by descriptive means (about it somewhat later). As for the data stored in such containers, it can be databases that are often used for video directory and audio online, saved user settings of programs and applications, as well as web pages.

As an example, you can take, say, a audio album of some artist. The XML file includes information on the year of release, genre, quantity and names of tracks, popularity, etc. True, when visiting resources in the World Wide Web Surfener, you do not need to think about the physical opening of such an information file, because even when playing a song online in the player All data on the type of those contained in the standard MP3 files in the form of ID3 tags will be displayed. Information seems to be loaded to the playback track.

XML file view

If you look at the file view, you can immediately notice that in it the properties of any object are described using tags and attributes that are specified manually.

About main teams The language itself does not go now, since such information is not needed by the ordinary yooard. The only thing that can be noted is only the fact that a certain amount of elements used to describe the object this format Does not exist: how much you need, so much and set.

How to open a standard XML format

Now let's see how to open the XML file. As already, probably, many have understood, this is a text file, which means it is easiest to use to view or edit anyone, even if the most primitive editor. Yes at least the same "notebook" from standard Set Windows.

However, not everything is so simple here. The fact is that by double clicking the file without specifying the corresponding association with any program will not open. At best, the system will offer a list of the most suitable applications. You can choose the program at your discretion, and at the same time put a tick on the permanent use of the selected application for all files of this type.

You can do otherwise using the right click on the file with the subsequent selection of the "Open with ..." command, after which, again, choose need app Either from the list, or specify the location of the main executable component (most often this is the EXE file).

The third method that allows you to open the XML file consists in the initial start of the program, and then to use the opening menu of the file (in most cases it is a combination of Ctrl + O). At the same time, it is absolutely optionally to use "Notepad". Please, the file opens without any problems in the same Word application and the like. Even the "Microsoft" Excel is able to open data from this format.

However, if there is a need to edit an XML format, then it is better to use professional utilities with support for language syntax, for example, Oxygen XML Editor, XML Marker or Editix Lite Version.. Naturally, these are not all utilities capable of working with the language of the file on summit. Today, such programs can be found a lot.

Now a few words about why an XML file error sometimes appears when opening. Most often, this is due to the violation of the integrity of the file itself, as well as with the incorrect introduction of descriptive attributes or tags. In addition, in Excel there is a limit on the limit of the displayed strings, so in this case, the data when opening may be incomplete.

Possible errors when opening an XML file in the form of an email attachment

Sometimes errors can appear when an attempt is made to open a file that is an attachment. e-mail. Total of all this refers to the standard postal customers like Outlook Express.

The fact is that first the attachment is preserved in the form of temporary data (very often with the addition to the main extension of additional .TMP), and the appeal is made precisely to it.

To avoid such a situation, it is enough to initially save the attachment in the original format at any convenient space on the disk or on removable media, after which the standard methods described above are used.

Instead of the result

As we see, nothing complicated in understanding the structure and methods of opening files there is no such format. Here, however, it was not fundamentally considered a question of creating XML data, since for a complete understanding of the process, at least the basics of the language should be known. Otherwise, it seems, difficulties with files of such a format for users will not arise.

The XML language has already attracted a lot of attention from developers and Internet users. Today, the number of adherents of this new technology also increases rapidly, as well as the number of reports on the next obstacles on the way to universal recognition. Despite the fact that XML is very young (the international W3C organization approved the Specification "Extensible Markup Language (XML) 1.0" a little less than a year ago - in early February 1998) and the individual components of this language are still in the process of refinement, today new languages \u200b\u200bappear today. Created on the basis of XML, numerous Web servers arise that use this technology to organize information stored on them. The world's world around us is once again transformed, and we can become participants in this process today

The purpose of this article is an attempt on specific examples to show some of the possibilities of XML, to respond to a number of frequently arising from the new language of questions. What is XML? What are his advantages before the usual HTML language already? Is it possible to use XML on your Web pages today? And if you can, how?

At the end of the article, references to other Internet resources are given with the help of which you can also get more complete information on specific questions you are interested in associated with the use of XML and unprofined by us in this article. Full XML specifications and linguistic related languages \u200b\u200bare available on the official W3C page -

Why do you need a new markup language?

Much simpler and more convenient than SGML, hTML language Allows you to determine the design of the elements of the document and has a limited set of instructions - tags, with which the markup process is carried out. Instructions HTML, first of all, are intended to control the process of outputting the contents of the document on the client program screen and determine this method of presenting the document, but not its structure. As an element of a hypertext database described by HTML, a text file is used, which can be easily transmitted over the network using the HTTP protocol. This feature, as well as the fact that HTML is an open standard and a huge number of users have the opportunity to apply the capabilities of this language to execute their documents, of course, influenced the growth of HTML popularity and made it today the main mechanism for presenting information in Web

However, modern applications need not only in the data presentation language on the client screen, but also in the mechanism to determine the structure of the document, describe the elements contained in it. HTML has a simple set of commands and completely successfully copes with a description of the description. text information and displaying it on the browser view program screen. However, the displayed data themselves are not related to those tags that are used for formatting, so the analyzer programs do not have the ability to use HTML tags to search for the document fragments we need. Those. meeting, for example, such a description

rose.,

the viewing program will know how to display the text contained inside tags And, it is likely that it will appear correctly, but it is absolutely indifferent to her, in what place the document met this tag, which other tags are the current fragment, whether there are fragments invested in it, the relationships between objects are properly built. Such "indifference" to the structure of the document leads to the fact that the search or analysis of information inside it will not differ from working with a solid, not broken into elements text file. And this is known, not the most effective way of working with information.

Another significant disadvantage of HTML can be called limited set of its tags. DTD-rules for HTML define a fixed set of descriptors and therefore developer does not have the ability to introduce their own, special tags. Although from time to time new language extensions appear (today the latest HTML version is HTML 4.0), but the long way of their standardization, accompanied by constant disagreements between the main manufacturers of browsers makes it almost impossible to quickly adapt the language, its use to display specialized information (for example, multimedia , mathematical, chemical formulas, etc.).

Summing up all the above, it can be argued that HTML today does not satisfy fully the requirements for modern developers to the languages \u200b\u200bof this kind. And he was proposed to replace a new language of hypertext marking, powerful, flexible, and, at the same time,, convenient XML language. What is his advantages?

XML ( EXTENSIBLE Markup Language) This is a markup language that describes the whole class of data objects called XML documents. This language is used as a means to describe the grammar of other languages \u200b\u200band controlling the correctness of document preparation. Those. In itself, XML does not contain any tags intended for marking, it simply determines the order of their creation. Thus, if, for example, we believe that to designate the element rosein the document it is necessary to use a tag ;, then XML allows you to freely use the TEG defined by us and we can include fragments similar to the following:

rose.

Tag set can be easily expanded. If, suppose we want to also indicate that the flower description should, in meaning, to go inside the description of the greenhouse in which it blooms, simply ask new tags and choose the order of their following:

rose.

If we want to plant a few more floweries, then the following changes should be made:

rose. tulip. cactus.

As can be seen, the process of creating an XML document is very simple and requires only the basic knowledge of HTML and understanding the tasks that we want to execute using XML as a markup language. Thus, the developers have a unique opportunity to determine their own commands that allow them to most effectively determine the data contained in the document. The author of the document creates its structure, builds the necessary links between the elements using those commands that satisfy its requirements and achieves this type of markup, which is necessary for it to perform the operations of viewing, searching, analyzing the document.

Another of the obvious advantages of XML is the ability to use it as a universal query language for information warehouses. Today, in the depths of the W3C, there is a working version of the XML-QL (or XQL) standard, which may in the future will be a serious SQL competition. In addition, XML documents can act as a unique data storage method, which includes simultaneously tools for analyzing information and representing it on the client side. In this area, one of the promising areas is the integration of Java and XML-technologies, which allows using the power of both technologies when building machine-independent applications using, in addition, universal format data when exchanging information.

XML also allows you to monitor the correctness of the data stored in the documents, to check the hierarchical relations within the document and establish a single standard on the structure of documents containing the most different data. This means that it can be used when constructing complex information systemsin which the issue of sharing information between various applications operating in one system is very important. By creating the structure of the information exchange mechanism at the very beginning of the project, the manager can get rid of himself in the future from many problems associated with the incompatibility of the data used by various components.

Also, one of the advantages of XML is that XML-document handler programs are not complicated and today all sorts of software products appeared and freely extend to work with XML documents. XML is supported today in Microsoft Internet Explorer. 4/0 and in beta versions IE5. It was announced on its support in subsequent versions of Netscape Communicator, DBMS Oracle, DB-2, in MS-Office applications. All this gives reason to assume that, most likely, in the near future, XML will be the main language of information exchange for information systems, replacing, thereby, HTML. Based on XML today, such well-known specialized marking languages, like SMIL, CDF, Mathml, XSL, and a list of work projects of new languages \u200b\u200bunder consideration of W3C are constantly updated.

What does an XML document look like?

First Second subparagraph 1. The third Last

The rules for creating an XML document

Russia.Novosibirsk.</country>

Language designs

Data elements

rose. Novosibirsk. Rose Novosibirsk Siberia. Novosibirsk State Technical University
very good institute Novosibirsk State University
also not bad Why is it needed, this XML?

[Recently, due to the emergence of these pages, most frequent
i was like this: "Tell me, why is it generally needed XML?
Do we have little HTML? "Without having a lot (or mind;) for the manufacture of own publications, as well as deeply charging, I preferred it is better to transfer an excellent article according to the named subj
- Perhaps this is the first episode of the series "To Help"]

JON BOSAK, TIM BRAY
XML and The Second-Generation Web
From the magazine "SCIENTFIC AMERICAN", May 1999

Give people a couple of filings, they will consemine the rest. Looking at the page where larger blocks of text are divided into smaller, all quickly understand that before them the beginning of the article. Looking at the list of grocery goods, you can quickly gues that it is "instruction" to visit the store. Seeing the speakers of numbers - to understand what is a bank account. Computers are not so smart yet - all this has to concern exactly - with what exactly they should deal with and what is required for this.

It is for this purpose - to make information itself-described - and was invented a new language markup language - Extensible Markup Language (XML). These easily across the changes ("self-described" document change the rules of communication with computers) carry huge potential in itself - the role of the Internet from the information delivery environment begins to expand on other types of human activity. And indeed, since its approval of its W3C in 1998, the XML specification with the speed of a forest fire began to penetrate everywhere - to industry and science, in the production of goods and medicine.

Enthusiasts hoped that XML would give the opportunity to solve a number of global Web problems. These problems are known: first, the Internet is a superstar network, often behaves worse than the turtle; And secondly, although there is hardly all the information in the network, it is difficult to find something necessary in it often it is difficult to rabies.

Both of these problems are mainly due to the nature of the main language of the network - HTML. And although the success of HTML compared to other ever proposed email publications is obvious, HTML is too scone: in essence, he only tells the browser, how to place on the page text, pictures and buttons on the page. HTML rests on the presentation of information, and therefore is quite simple to study, but it has to pay for it.

This is reflected in the difficulty of developing Web sites, unless these sites should resemble faxes that send pages to everyone who will ask. More than half of people and companies all over the world would prefer Web sites that can accept from users orders, send diagnoses of diseases and even run thin instrumental operations in factory workshops and scientific laboratories. Similar tasks _Nead_ did not stand in front of HTML!.

For example, even if your doctor, it turns out to "extract" in your review analyzes taken from your honeymakers, it is hardly possible to send them to another specialist to insert them back into your database. His computer does not know what to do with the information that he is as clear to him as

be Be Ba

or bee.
The legendary Kernigan once noticed that all the trick of the principle of WYSIWYG (I see, I get it) is that when nothing can be seen, then it is usually possible to get exactly the same.

Those words are higher that they are enclosed in angular brackets are called tags. There is no tag for analyzes in HTML, and hence the other drawback: inflexibility. Adding to the tongue of new tag is such a bureaucratic Volokhate, such a long, that no one will communicate with it. But their own tags would not prevent each program, and not just such as in the example given with the doctor.

This largely explains today's slow pace of creating online stores, mail directories and other interactive sites. By changing the number of order units and delivery method, and seeing the handful of the challenge in the "Amount" field, you still have to request a remote (already overloaded work). You will send you a back full-form page with graphics and everything else. While your own powerful computer will be idle idle because I just learned something like

and But not prices with delivery options.

Add to this and unsatisfactory quality of search options in Web. Since there is no way there is somehow especially to mark price information, it is strongly impossible to exercise in the Web searching for the price of the "price".


Something old, something new

In principle, the solution is elementary: in the tags you need to indicate what information is for information, and not how it should look. For example, place the order components on the tag shirt "price, size, quantity, color," and not "Bold, Paragraph, Row, Column", as it is offered in HTML. Then the program is easier to identify the document as an order and fulfill the rest of the work: show this order in one form or another, spend through the accounting system, or do everything so that the next new shirt will be delivered to your threshold.

We, W3C Working Group, began to launch such a project in 1996. The idea was strong, although not quite original. Throughout generations, editors and printers laundered handwritten texts for sets. A similar "markup language" developed self-intensively until 1986., As a result, as a result of the ten-year work, the International Organization for Standardization (ISO) did not introduce a system for creating new markup languages.

Having received the name SGML (Standard Generalized Markup Language), this language description language - meta language - proved its utility on the example of many major publication preparation systems. And even HTML received its definition through SGML. The only difficulty with SGML was to be in his omnivities - there is a lot of buzz things to minimize keystrokes, since at that time each byte was on the account. That is why today web browsers are not in Lada.

Creating XML, our working group cleared SGML from all the husks and suggested a strictly target and respondant metalan. The XML base is a set of rules, guided by which, each can create their own markup language. These rules are selected so that one single small program (it is also called a parser or syntactic analyzer) could cope with the recognition of any new language. Let us turn again for example with a doctor who would like to convey the tests by a specialist. If the doctors professionals were built up from XML their markup language for encoding medical records (a number of groups have long been working on a problem), then in the doctor's report to his colleague could be something like


<имя пациента> Blah Blah.
<аллергия на лекарство> BlaH Blah Blah.

In this formulation, it is no longer difficult to write a program for an arbitrarily taken computer so that it can recognize these standardized medical records and knew how to make this in the literal life of vital information into its database.

In the same way as HTML was created that any user could read Internet documents, XML gives us Esperanto, on which anyone can read and write, despite the Babylon of incompatible platforms. Yes, even from the point of view of the ordinary person in XML language, more semantic load (unlike other data formats), for it does not have something that would look like uncontamine text.

The power of the universality of XML is due to the minimum set of correctly selected rules. Firstly, the tags always make up a pair, surrounding the text to which they apply in a kind of brackets. Secondly, paired tags can be inserted into each other like quotes, allowing the complex multi-level structures.

The liner rule automatically causes the simplicity of any XML document, producing a structure known in computer science as a tree. Similar to the genealogical tree, any graphic or text element of the document is the father, son or brother (Parent, Child, Sibling) of some other element, and this relationship relationship is always definitely. Of course, trees do not describe all the diversity of data structures, but cover most of the sample applications of computers. In addition, trees are unusually convenient for programmers. There are no problems write a small piece of code to reordering transactions or output to the screen quite understandable check, when this check is represented as a tree.

The second source of the Universal Power XML is a support for a new Unicode standard - a coding system that allows interconnection of texts to all major world languages. On the contrary, in HTML, as in the mass of text processors, a document, as a rule, can only be in one particular language, no matter what - English, Japanese or Arabic.
And if the program does not know the encoding of some language, the document (in HTML) can be forgotten. It happens worse: for example, due to the inconsistency of the program encodings written in Taiwan, they often do not know how to read texts focused on mainland China. In the case of XML, if the program can work with it correctly, it will cope with any combination of encodings. Thus, XML allows you to exchange data not only between different computer platforms, but also makes it possible to overcome national and cultural barriers.


End Wide Wait)

With the distribution of the XML network should be much "responsive". Today, everything you can do computer devices on the network, it does not matter, powerful it is desktops or pocket organizers, it is no more than getting a form of "get", fill it out, then drive it to the Web server there, while working with the form will not be completed. XML gives us the opportunity to transfer the structure and semantics of data into the form, and, therefore, all these devices will be able to make the main processing in the right place and immediately. This will not only reduce the load on the server, but also should lead to a significant reduction in network traffic.

For illustration, imagine how in online travel agency you need to choose a flight from London to New York on July 4th. Most likely, you will see a list of several times longer than it can fit on the screen. This list can be reduced by setting more accurate parameters of the type of departure time, price or airline, but in this case you simply "load" the server of the travel agency for your request and are forced to wait for the answer. However, if this long list of flights were provided to you in XML, the Bureau could escort it with a small Java-applet, with which it is instantly and easily sorted and unnecessary, without resorting to any interaction with the server. Multiply it for millions of Web users, and the overall effect will be impressive.

The more network information will be charged with "sectoral" XML tags, the easier it will find what you are looking for. Today, the search on the Internet on request "work for the Exchange Broker" will flash you avalanche of advertising ads, but probably about their work there will be only a few pieces - mostly work is hiding on the free ads of newspaper advertisements, which search robots do not like to work. And now the Association of America Newspaper (Newspaper Association of America) creates its language markup on XML, promising to make the search process much more efficiently.

It doesn't matter if it's just an intermediate step. The librarians have long known ways to find something quickly - not the documents, but their compact key descriptions, only indicating the sources themselves. Namely, these are catalogs with a sample in the form of library cards. Such information about information and is called "metadata".

Therefore, from the very beginning, an important role in the XML project was given to the creation of a concomitant standard of metadata. The same role as catalog cards for library books, the February Specification of Resource Descriptions should be played for information in the Web (Resource Description Framework, RDF). Spreading over the network, RDF metadata will make the search much faster and relevant than now. There are no librarists on the network, but each webmaster, to all of the time, is committed to the easy "peerness" of his site, so we expect RDF, as soon as people will open his power, will have a huge impact on the development of the Internet.

Of course, information can be obtained without searching. In the end, the network is a hypertext - billions of pages, permeated by hyperlinks - those underlined in words, for which it is enough to click to die on some other page. In XML, the mechanism of hyperlinks is as many times reinforced. Specification of links to XML, called XLink and which W3C is preparing by the end of the year, will give the user to choose from several destination addresses. Another kind of hyperlink will allow you to get text or image right at the point of clicking, giving the opportunity to the visitor not to leave the page.

It is probably useful in XLink to be the part of the specification, which allows the authors to resort to mediated links, sending instead of the pages themselves into some kind of consolidated database. So, if the author changed the address of the page, a simple author's editing of one entry in such a database, it is easy to update all links leading to its page. This will make it possible to get rid of the "404 File Not Found" messages that are familiar with the "broken" link.

The combination of more efficient processing, more accurate search and more flexible binding revolutionizes the network structure and opens up completely new methods of access to information. For users, this new network will become significantly faster, more powerful and more useful than the network today.


Cooperation is needed

Of course, not everything is so simple. XML allows you to construct a new language to your own way, but create a good language - the task, the complexity of which should not be underestimated. Come up with a language - Only the very beginning: It is naive to expect that the values \u200b\u200bof your tags will be apparent to other people while you have not supplied the language by the manual, and will be understood by computers until you wrote programs working with language tags until you have written programs.

It is not difficult to explain why this is so. If everything you need to teach the computer to handle orders, it was reduced to the markup of the tags, then XML would not need. I would not need even programmers - the computers are smart enough to be able to do everything yourself.

What we need XML, it is not magic, but effectiveness. XML establishes the basic rules, on one layer simplifying programming details - so that people with similar interests can concentrate on another solid nuts - agreements on how they would like to make data that they want to exchange. This is a very difficult problem, although not new.

And such agreements will be, since multiplying incompatibility of computer platforms gives us as a result of the delay of the deadlines, financial losses and leads to confusion in almost all areas of activity. People want to share ideas and do the case, no matter what everyone has different computers - and that this is a reality, the interdependence of private (for different areas of activity) of languages \u200b\u200bhas a long way. However, a flurry of new abbreviations with the end of "ML" indicates a undoubtedly progressive (Inventiveness) jet that XML introduced into science, business and education.

Creating a new markup language on XML, its creators must agree on three things: what tags there will be, how they can enable each other, and how they should be processed. The first two points are a dictionary of language and structure - are encoded now by DTD (Document Type Definition). The XML standard does not oblige the language developers to resort to DTD, but most of the new DTD description languages \u200b\u200bseem to be - programmers it is so easier to write programs that understand this marking and removing something sensible from it. We also need guide kits, where the values \u200b\u200bof all tags are described in the human language. For example, HTML has a DTD description, but HTML has hundreds of the usual guides with which programmers are checked by developing browsers and other programs for Web.


Essay about style

For users, the main thing is that the program can do, and not what is written in its description. As a rule, people prefer the programs to allow them to see the information encoded in the XML language in readable form. But in the tags of the XML itself there is no special markup indicating. How data should be presented on the screen or printed sheet.

For publishers seeking to write one day, and then constantly publish ("Write OnCe and Publish Everywhere"), the most important thing is to "give birth to" publication, and then "spill" it in the myriad of the types of publications, both printed and electronic. XML helps them like this: content is placed descriptive tags independent of the visualization environment. Next, the publisher may issue the rules of representation in the form of the T.N. StyleSheets (sheets of styles), automatically "stylizing" its product for different devices and media. The standard of such an XML language, developed for these purposes, is called Extensible StyleSheet Language (XSL).

The latest browser versions can read XML documents, select the appropriate style files, and apply them to sort and format information on the screen. The reader may not even guess what is dealing with XML, not HTML, unless payments that sites with XML are freeze and easier to use.

People with vision disadvantages also receive a free winning from the XSL principles of publishing documents, since XSL gives them the opportunity to read XML in the Broaden system or from the voice. These advantages relate to the rest: for example, a community, who wants to engage in network surfing, without leaving the car, for sure it would seem quite comfortable to listen to the pages in sound accompaniment.

Although at first the kernel of the network was scientific and educational programs, today's network is already commerce (well, or can be said, commercial expectations), stocking fuel for a quick start. Everyone remembers the recent resonance caused by a splash of online sales, and is it worth talking about how businessmen interact in the network among themselves. The streams of goods of large manufacturers are still asked for automation on the network. But in today's business schemes, complex interactions of Program-to-Program are used, and in practice it works out of hand badly, for for success it is necessary for the uniformity of processing processes, which is still far away.

For centuries, people successfully engaged in business, exchanging with typical documents: orders, accounts, declarations, receipts, etc. etc. Documents worked for business, and no one demanded that one party to know the inner kitchen another. Any document was shown exactly how much the recipient had its information to show, and no more. Apparently, the exchange of documents is the most correct way to do business and in Web too. But this was not at all the task that HTML was created.

Conversely, XML is conceived precisely for the purpose of sharing the documents and it is obvious that the basis of e-commerce will rely on agreements expressed by millions of Internet-based documents running on the Internet.

Thus, the network, reinforced XML, should become for its users a quick, friendly and better place for business. Even more XML needs webmasters and Web-designers. "On the full coil" will need knowledge of new XML languages \u200b\u200bby the armies of programmers. And although the days of self-educated hackers [the authors meant the best meaning of this word] still last, the threat has already hung over their population.

Tomorrow Web-designer must be versed not only in the manufacture of text and graphics, but also in the construction of multi-level, interdependent systems based on DTD, data trees, hyperlink structures, metadata and style components - strong and advanced second-generation Web infrastructure.

In the Windows operating system, most programs store their settings in the registry. However, special files are also often used to store the application parameters, usually directly directly in directories with executable files or in subfolders. Configuration files may have different formats, including XML format, which is dedicated to this small article.

What is this xml format, what is needed and where is used

In truth, the goals with which the XML format was created (he appeared in 1996), it was possible to speak, global. XML or Extensible Markup Language, which is translated as "expandable markup language", was developed as a means of providing compatibility of transferred structured data between various software systems, especially those of them that are used on the Internet. This language is so universal that XML files understand even incompatible applications of different operating systems, which, of course, significantly simplifies the programmers to the exchange of information between software platforms.

In addition, XML is actively used when designing sites. Sometimes it is positioned as a more perfect and universal analogue of the HTML hypertext markup language, but these languages \u200b\u200bactually serve in various purposes. HTML meets mainly for displaying data, XML has also been designed to transfer and store these data. XML is also used when creating new Internet languages. By the way, familiar to many RSS used in the newsletter through news channels is based on XML.

Programs for opening and viewing files in XML format

What kind of XML format figured out, now let's see how to work with it. In truth, the need to edit XML files usually face developers and system administrators, but let's all assume that the same need arose with you. How to open the XML file? In general, you can watch it with any text editor, even notepad, but much more convenient to use special programs for these purposes.

NotePad ++.

If you are looking for how to open XML, try NotePad ++. - Universal text editor designed to create and edit code. Easy, fast and simple, it is ideal for working with all sorts of configuration files. The editor supports the syntax highlighting, a change in encoding, there is a powerful built-in search by different parameters, in one word, everything that is needed by the programmer and not only to it.

XMLPAD.

Unlike NotePad ++, XMLPAD. It is a highly specialized editor. Just as you can and need to open the XML format, since it was created for working with files of this type. In addition to viewing and editing XML documents, the XMLPAD editor supports their validation and inspection, converting to DTD, importing data from HTML and much more. As it should be, there is a syntax support in the application, there is a means of searching and replacing. Of the features of the program, you can select the presence of a built-in mini-browser to open URL links.

Those who are configured to study web languages \u200b\u200bmore seriously can be offered - advanced and at the same time simple and convenient XML editor on the Java platform. The program supports the creation and editing of XML, XSL, XSD and DTD files, there are also a built-in converter into scripts, XSLT and XQuery debugger, tools to work with XML visual diagrams and many other components. Disadvantages - the program is paid, and it does not have the support of the Russian language.

XML Marker.

Not bad way to open the XML file - use a simple editor XML Marker.. It is not so faithful as Oxygen XML Editor, but it fully copes with most tasks that arise before the user when working with XML files. In stock Representation of the tree structure of the document with the ability to quickly go to the selected rows by tags, convenient navigation, a complete set of tools for working with text data. Minus programs - no Russian language.

Browsers

There is another simplest way to read the XML file, however, we are talking about reading here. Open in Google Chrome or any other browser a new tab and drag the XML file to the browser window. The document will be represented in structured form, with the syntax highlight, everything is as it should be.

View XML files online

You can work with XML documents not only with the help of desktop programs, it is also not difficult to open an XML online. Here you note two simple online editor.

Xmlgrid.

Simply with sight, but a fairly functional online XML file editor available at XMLGrid.net. The service is supported by creating, modifying, validation and converting XML documents, there is additionally a feature of designing sites. The code of the editable file can be inserted into the web form from the clipboard, over the URL or by downloading the document to the server. The contents of the file is displayed as a table with data in which each field represents a separate cell.

XML Editor

Open the XML online file also allows an XML EDITOR Internet editor, which is part of the TutorialSpoint application set - one of the largest training resources. To use the service, go to www.tutorialspoint.com, at the top of the page, click the Tools link, find the XML Editor in the web application list and open it. You will see a simple window text editor With two columns. The left is written and edited the code, the tree structure of the document is displayed. You can download the file to the editor both from the computer and from any website, specifying the URL.



Did you like the article? Share it