2. 어떻게 XML이 사용될 수 있을까?
How Can XML be Used?
어떻게 XML이 사용될 수 있을까?
XML is used in many aspects of web development, often to simplify data storage and sharing.
XML은 주로 자료 보관과 공유를 간단하게 하기 위해 웹 개발의 많은 곳에서 사용된다.
XML Separates Data from HTML
XML은 HTML로부터 자료를 분리한다.
If you need to display dynamic data in your HTML document, it will take a lot
of work to edit the HTML each time the data changes.
당신이 HTML 문서에서 동적인 자료를 표시하고 싶다면, 자료를 바꿀 때마다 HTML을 편집하기 위해 많은 일을 해야 할 것이다.
With XML, data can be stored in separate XML files.
XML을 통해 자료는 분리된 XML 파일로 저장될 수 있다.
This way you can concentrate on using HTML for layout and display, and be sure that changes in the underlying data will not
require any changes to the HTML.
이 방법으로 당신은 배치하고 표시하기 위해 사용하는 HTML에 집중할 수 있고 자료의 변화는 HTML에게 변화를 요구하지 않음을 보장한다.
With a few lines of JavaScript, you can read an external XML file and update
the data content of your HTML.
몇 줄의 자바스크립트로 당신은 확장 XML 파일을 읽을 수 있고 HTML의 자료 내용을 갱신할 수 있다.
You will learn more about this in a later chapter of this tutorial.
당신은 이 튜토리얼(설명서)의 뒷부분에서 이에 대해 더 배울 수 있을 것이다.
XML Simplifies Data Sharing
XML은 데이터 공유를 간단하게 한다.
In the real world, computer systems and databases contain data in
incompatible formats.
실세계에서 컴퓨터 시스템과 데이터베이스는 호환되지 않는 형태의 자료를 포함한다.
XML data is stored in plain text format. This provides a software- and
hardware-independent way of storing data.
XML 자료는 평문 형태로 저장된다. 이는 자료를 저장하는 데 소프트웨어와 하드웨어의 독립적인 방법을 제공한다.
This makes it much easier to create
data that different applications can share.
이는 다른 프로그램이 공유하기 쉬운 자료를 더 만들기 쉽게 한다.
XML Simplifies Data Transport
XML은 데이터 전송을 간단하게 한다.
With XML, data can easily be exchanged between incompatible systems.
XML로 자료는 서로 호환되지 않는 시스템 사이에서 쉽게 교환될 수 있다.
One of the
most time-consuming
challenges for developers is to exchange data between incompatible systems over the Internet.
개발자에게 가장 시간을 소비하는 과제들 중 하나는 인터넷에서 호환되지 않는 시스템 사이에서 자료를 교환하는 것이다.
Exchanging data as
XML greatly reduces this complexity, since the data can be read by different
incompatible applications.
자료가 다른 호환되지 않는 응용프로그램에 의해 읽혀지기 때문에 XML로 자료를 교환하는 것은 이 복잡성을 크게 줄여준다.
XML Simplifies Platform Changes
XML은 플랫폼 변화를 간단하게 한다.
Upgrading to new systems (hardware or software platforms), is always very
time consuming. Large amounts of data must be converted and incompatible data is
often lost.
새로운 시스템(하드웨어나 소프트웨어 플랫폼)을 업그레이드 하는 것은 항상 시간을 많이 소모한다.
많은 양의 자료는 변환되어야 하고 호환되지 않는 자료는 자주 손실된다.
XML data is stored in text format. This makes it easier to expand or upgrade
to new operating systems, new applications, or new browsers, without losing
data.
XML은 텍스트 형태로 저장된다. 이는 새로운 운영체제, 응용프로그램, 브라우저에게 자료 손실 없이 업그레이드와 확장을 더 쉽게 한다.
XML Makes Your Data More Available
XML은 당신의 자료를 더 활용가능하게 한다.
Since XML is independent of hardware, software and application, XML can make
your data more available and useful.
XML은 하드웨어, 소프트웨어, 응용 프로그램의 독립적이기 때문에 XML은 당신의 자료를 더 활용가능하고 유용하게 만들 수 있다.
Different
applications can access your data, not only in HTML pages, but also from XML data sources.
다른 응용 프로그램들은 HTML 페이지에서 뿐만 아니라 XML 데이터 소스(자료 원본)로부터에서도 당신의 자료에 접근할 수 있다.
With XML, your data can be available to all kinds of "reading
machines" (Handheld computers, voice machines, news feeds, etc), and make it more available for blind
people, or people with other disabilities.
XML로 당신의 자료는 "모든 읽기 가능한 기계"에서 사용 가능할 것(모바일 장치, 음성 머신, 뉴스등)이며 이를 다른 장애인이나 장님에게 가능하게 할 것이다.
XML is Used to Create New Internet Languages
XML은 새로운 인터넷 언어를 만들기 위해 사용된다.
A lot of new Internet languages are created with XML.
많은 새로운 인터넷 언어들은 XML로 만들어진다.
Here are some examples:
다음은 그 예시들이다:
- XHTML the latest version of HTML
- HTML의 최신 버젼인 XHTML
- WSDL for describing available web services
- 가능한 웹 서비스를 묘사하는 WSDL
- WAP and WML as markup languages for handheld devices
- 모바일 장치를 위한 마크업 언어인 WAP과 WML
- RSS languages for news feeds
- 뉴스를 위한 RSS 언어들
- RDF and OWL for describing resources and ontology
- 자원의 존재를 묘사하기 위한 RDF와 OWL
- SMIL for describing multimedia for the web
- 웹을 위한 멀티미디어를 묘사하기 위한 SMIL
If Developers Have Sense
개발자가 센스가 있다면
If they DO have sense, future applications will exchange their data in
XML.
개발자가 센스가 있다면 미래의 응용 프로그램은 XML로 자료를 교환할 것이다.
The future might give us word processors, spreadsheet
applications and databases that can read each other's data in a pure text format,
without any conversion utilities in between.
미래는 순수 텍스트 형태로 서로서로의 자료를 변환 유틸리티 없이 읽을 수 있는 워드 프로세서, 스프레드 시트, 데이터베이스를 우리에게 제공할 것이다.
We can only pray that all the software vendors will
agree.
우리는 모든 소프트웨어 벤더들이 동의하기를 바랄 뿐이다.
Reference : http://w3schools.com/xml/xml_usedfor.asp