Chapter 6 
277
unambiguously define the data model. Before XML, many times canonical 
data models were established but never documented by their developers. If you 
were lucky, developers might have described the model in a text document. It 
was easy for such a document to get out of sync with the actual types used by 
the model.
  XML schemas are enforceable. You can validate an XML document to ensure 
that it conforms to the schema of the canonical data model. A text document 
cannot enforce use of the proper types. 
  XML is easier to convert to an alternate form, by using declarative means such 
as style sheets.
  XML is both platform and programming language neutral. Hence, you can 
have a variety of systems use the same canonical data model without requiring 
a specific programming language or platform. 
This is not meant to imply that XML is perfect, since there are some disadvan 
tages to using XML to represent a canonical model. For one, to use XML you
need to either learn the XML schema language (XSL) or use a good tool. Often,
transforming XML requires you to use XSL, which is not an easy language to
learn, especially since XSL is different from traditional programming languages.
There are also performance overheads with XML. However, for many enterprise
settings (and especially for integration purposes) the benefits of using XML out 
weigh its disadvantages, and the benefits of XML become more significant when
you factor in future maintenance costs.
Code Example 6.3 shows an XML document representing invoice informa 
tion. This might be the canonical model of an invoice used by the adventure
builder enterprise. Since this document is published internally, all new applica 
tions requiring this data type can make use of it. 
xmlns:bpi="http://java.sun.com/blueprints/ns/invoice" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema instance" 
xsi:schemaLocation="http://java.sun.com/blueprints/ns/
invoice   http://java.sun.com/blueprints/schemas/
invoice.xsd">
1234
AB j2ee 1069278832687
<





New Page 1








Home : About Us : Network : Services : Support : FAQ : Control Panel : Order Online : Sitemap : Contact : Terms Of Service

 

Our web partners:  Jsp Web Hosting  Unlimited Web Hosting  Cheapest Web Hosting  Java Web Hosting  Web Templates  Best Web Templates  Web Design Templates  Interland Web Hosting  Cheap Web Hosting  Filemaker Web Hosting  Tomcat Web Hosting  Quality Web Hosting  Best Web Hosting  Mac Web Hosting

 
 

Virtualwebstudio. Business web hosting division of Vision Web Hosting Inc. All rights reserved

Clan Web Hosting