XML/Introduzione: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Riga 191:
=== Alternative a Netbeans ===
Gli esempi qui riportati utilizzano Netbeans per lo sviluppo di codice XML corretto. Se vi interessa un alternatica a Netbeans, consultate la voce [[Programmare in XML/Exchanger XML Lite come alternativa a NetBeans]]
 
=Implementazione di XML: alcuni case study =
 
==XML all'United Parcel Service (UPS)==
“UPS è un'azienda di servizi il cui successo dipende da scalabilità e velocità,” dice Geoff Chalmers, Project Leader presso il Dipartimento eSolutions di UPS. Nel 2003, UPS ha avuto un reddito annuale di $33.5 miliardi e 357,000 impiegati in tutto il mondo. Il sei per cento del Prodotto Interno Lordo (PIL) degli Stati Uniti per ogni giorno è presente nel sistema UPS.
 
UPS fa un ampio uso della tecnologia. Il dipartimento Sistemi informativi ha 4,000 impiegati. Il sito web dell'azienda ha 166 diverse home page nazionali ed è supportato da 44 applicazioni.
 
UPS consegna circa 13 milioni di pacchi ogni giorno, e i clienti possono tenere d'occhio queste consegne attraverso il sito web dell'UPS, che riceve circa 200 milioni di visite giornaliere. Tra le applicazioni utilizzate da ups.com diciannove sono applicazioni XML OnLine Tool ([[w:Web service|Web service]]).
 
Gli strumenti online di UPS sono sviluppati in modo specifico per essere integrati con le applicazioni dei clienti. Questo rende il compito del cliente più semplice, facile e veloce. UPS ha verificato l'importanza della velocità e della semplicità attraverso “[http://www.ups.com/content/us/en/bussol/offering/technology/automated_shipping/pbm.html CampusShip],” uno dei prodotti di maggiore successo di UPS negli ultimi 10 anni. UPS CampusShip® è un sistema di spedizioni Web-based ospitato da UPS. Attraverso una connessione Internet, gli impiegati possono spedire i propri pacchi e lettere da qualsiasi scrivania, mentre i dirigenti conservano un controllo generale sulle attività di spedizione. UPS CampusShip® permette di rendere possibile simultaneamente l'autonomia di chi spedisce e il controllo dei costi da parte dei quadri dirigenti all'interno dell'organizzazione. Questo prodotto deve il suo successo al fatto che non sono richiesti né l'installazione di software né assistenza ed è inoltre veloce da implementare. XML Online Tools ha reso possibile un'evoluzione di CampusShip® a costi contenuti e in tempi rapidi.
 
UPS è a favore di XML specialmente perché è 'agnostico', ovvero indipendente dalla piattaforma e dal linguaggio utilizzati. Queste caratteristiche rendono XML molto flessibile e potente. E' anche sganciato da altri software ([http://http://en.wikipedia.org/wiki/Decoupling#Software_Development/ Decoupling]) e scalabile. XML ha consentito a UPS di puntare a un mercato più ampio e di ridurre le interazioni con i clienti, e di conseguenza il costo del servizio clienti. Un'altra caratteristica positiva di XML è la sua retrocompatibilità. L'adozione di XML ha ridotto in modo significativo i costi di manutenzione, implementazione e uso all'interno di UPS.
 
Questi vantaggi hanno però un prezzo. “XML è inefficiente in vari modi” afferma Chalmers. Purtroppo XML occupa più risorse di CPU e di banda rispetto alle altre tecnologie. D'altra parte la larghezza di banda e la CPU costano poco e il loro prezzo scende ogni giorno, dunque si tratta di un problema che sta gradualmente scomparendo.
 
Tuttavia, Chalmers ritiene anche che XML non funzioni bene nei database. Sostiene che è troppo verboso e che è un medium di scambio piuttosto che un medium per database. Ci sono stati alcuni primi tentativi di integrare strettamente XML e i database. Dal momento che i database forniscono struttura e identificazione ai dati come fa XML, il valore aggiunto dell'integrazione XML-database è limitata alla possibilità di applicare una struttura gerarchica. D'altra parte, se i dati devono essere immagazzinati come [[w:Binary_large_object|blob]], allora XML ha senso. Un altro problema che sottolinea a proposito di XML è che le regole di business non possono essere espresse negli XML schema.
 
Infine, la programmazione e il debugging di XML grezzo può essere impegnativo. Quindi le imprese clienti di UPS stanno iniziando a esplorare i generatori di codice e le funzionalità interne che si possono trovare in [[w:Microsoft_.NET|.NET]] e [[w:BEA_Services|BEA]]. Comunque, la scrittura a mano del codice da parte di esperti ingegneri interni all'azienda è obbligatoria per garantire l'alta disponibilità, scalabilità e performance che UPS richiede per gli UPS OnLine Tools.
 
==XML at EMI Music==
 
'''How is it used?'''
 
EMI Music Germany GmbH & Co. KG, a famous German record label, displays information about the artists it is affiliated with [http://www.emi.de/ on its website]. Visitors are able to explore all their audio or video productions.
The whole website consists of nearly 20,000 pages that contain information about artists and their products (CD, DVD, LP). Everything is properly linked and systematically grouped.
 
After all, there is data to be provided for every artist, albums, samples, pictures, descriptions or article codes. The site is updated on a daily basis and is subject to change by a web editor whenever it’s necessary. Now this is a fairly complex and large amount of data to be handled.
 
This is where XML comes into play. The data, which is stored in a database, has been transformed into XML code. Now an XSLT stylesheet converts this data into HTML code, which can be easily read by any web browser (e.g. Internet Explorer or Firefox).
 
'''What's the benefit?'''
 
The advantage of XML is that the programming effort is considerably lower as compared to other formats. This is because XML lies at the point of intersection of XSLT and HTML.
 
It’s also no problem for the web editor to update the website. Using XML makes it easy for the person in charge to deal with this large amount of data.
 
'''Going beyond…'''
On the basis of the XML scripts thus far produced by EMI Music, the company could easily produce a PDF-formatted catalog or design i-Mode pages for the current mobile phone generation. Thanks to XML, this can be done with little extra effort.
 
=A brief history of XML=
In the late 60s Charles Goldfarb, Raymond Lorie and Edward Mosher all working for IBM started to develop GML (Generalized Markup Language), a text formatting language. The language was successfully applied for internal documentation procedures. As it used to be common, the document editing was performed in the batch-mode. GenCode, another procedure to define generic formatting codes for the typesetting systems of various software producers, was developed by the GCA (Graphic Communications Association) at about the same time. Both of these technologies, GML syntactically and GenCode semantically, served as basis for the development of SGML (Standard Generalized Markup Language). The process of standardization started at the U.S. Standardization institute ANSI in the early 80s and in 1996 SGML finally passed as ISO standard ISO2879:1986.
 
SGML is reckoned to be a complex and comprehensive language (the specification extends 500 pages). However, the success of HTML (Hyper Text Markup Language) approved that the concepts of SGML were appropriate. SGML-based HTML was developed by Tim Berner-Lee in Geneva, in the early 90s in order to illustrate and link documents in the Internet. Meanwhile HTML developed being the most successful format for all electronical documents. The Internet was originally designed as a space for human-human and human-machine communication but lately the machine-machine communication gained tremendously importance, putting a completely new challenge on the computer languages used.
 
HTML is a descriptive language for the presentation of documents. The main focus is on the presentation meaning that a HTML-document mixes the presented data and its formatting instruction. A human being may recognize the displayed semantic by means of the presentation and the context meaning, a machine or better-said software is unable to.
 
In 1996 a team under the guidance of Jos Bosak attending the W3C-consortium was established to make SGML web-suitable. The result was a 30-page specification, which received in February 1998 the status of a "W3C-recommendation" and was named "Extensible Markup Language (XML)".
 
The most important goals developing XML were:
* XML should be compatible with SGML
* XML should be easy to use in the Internet
* The number of optional characteristics should be minimized
* XML-documents should be easy to generate and human-readable
* XML should be supported by a variety of application
* It should be easy to write programs for XML
* XML should be put into practice on time
 
In the terminology of markup languages, a description formulated in XML is called a XML-document, albeit the content has nothing to do with text processing.
 
==Perché questo libro non è un documento XML?==