Identify the Structure of XML Documents
An XML application is considered to be well designed if it is robust scalable. For a well designed XML application the data model for the application should contains all the information that the application requires and should be able to accommodate subsequent changes. To design a robust and scalable XML application, you need to perform the following steps :-
a) Create an Information model to understand the structure and meaning of information that will be stored in the XML documents
b) Identify the required component of the XML document.
c) Create the document considering the set of predefined rules.
An Information model is a description of the information used in an organization. It specifies the meaning of data. In the absence of an information model, there is only data and no information.
In XML, an information model is used to understand the structure and meaning of information that will be stored in XML document. Information modelling helps you identify the objects involved in an application, the properties of the objects and the relationship among them. The Component of the XML document can be easily identified after you create the information model.
XML provides the following additional capabilities to information modelling :-
You can create Static, dynamic , or a combination of both these information models for an XML application.
A static information model helps you defined all the objects in an application and the relatiohsips among them. For example :- customer and account types can be two object in an XML-based banking application. The properties of the customer object can be customer name,address and account number and the properties of the account type can be saving account or current account. The type of account that a customer that a customer holds defines the relationship between the customer and the account type object.
Defining the Static Information Model:-
The best approach to define a static information model is a step-by-step method. This method is described as follows :-
b) Defining the object types
c) Using the type hierarchy
d) Finding relationship
e) Defining properties
Dynamic Model :-
In a dynamic model, data flow diagram and process diagrams are used to determine the flow or information. In this model, you determine the information flow of an application in the form of messages.
Using the Dynamic Information Model :-
While using XML for representing the message that flow around the system, its better to understand what happens to data, where it comes from and where it goes. Some of the approaches for using dynamic information model are :-
a) a) Process and workflow models
b) b) Data Flow models
a) Data stores that store the information
b) Processors that manipulation the data
c) Data flows that transfer data from one processor to another
C) Object Models
d) Object life histories
e) Use cases
f) Object Interaction diagrams.