XML: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
(New page: '''XML''' is a general purpose markup language. It is generally used to store data in a standard way and is useful for exachanging data. XML is commonly used as part of SOAP [[Web Se...)
 
m (Added derivation)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''XML''' is a general purpose markup language.  It is generally used to store data in a standard way and is useful for exachanging data.
'''XML''': eXtensible Markup Language - is, like [http://en.wikipedia.org/wiki/HTML HTML], a sub-set of [http://en.wikipedia.org/wiki/SGML SGML] - Standard Generalized Markup Language - itself a standardised form of [[http://en.wikipedia.org/wiki/IBM IBM's]] [[http://en.wikipedia.org/wiki/IBM_Generalized_Markup_Language GML]] - Generalized Markup Language.
 
XML is a general purpose markup language.  It is generally used to store data in a standard way and is useful for exachanging data.


XML is commonly used as part of [[SOAP]] [[Web Services]].
XML is commonly used as part of [[SOAP]] [[Web Services]].
Line 31: Line 33:
   <customer id=2>
   <customer id=2>
The attribute ''id'' belongs to the ''customer'' element and the value of the attribute is 2.  Data stored in attributes are generally used to allow easy processing of the XML file.  In this example having an ''id'' element allows you to easily find the customer element using a [[FindNode]] function.
The attribute ''id'' belongs to the ''customer'' element and the value of the attribute is 2.  Data stored in attributes are generally used to allow easy processing of the XML file.  In this example having an ''id'' element allows you to easily find the customer element using a [[FindNode]] function.
==Using XML with Visual DataFlex==
*[[XML Logging]]
*[[XML Replay]]


==External Links==
==External Links==

Latest revision as of 20:00, 7 April 2008

XML: eXtensible Markup Language - is, like HTML, a sub-set of SGML - Standard Generalized Markup Language - itself a standardised form of [IBM's] [GML] - Generalized Markup Language.

XML is a general purpose markup language. It is generally used to store data in a standard way and is useful for exachanging data.

XML is commonly used as part of SOAP Web Services.

Here is an example of a simple XML file:


 <customers>
   <customer id=1>
     <name>Data Access</name>
     <phone>1234-5678</phone>
     <website>http://www.dataaccess.com</website>
   </customer>
   <customer id=2>
     <name>Microsoft</name>
     <phone>1234-666</phone>
     <website>http://www.microsoft.com</website>
   </customer>
   <customer id=3>
     <name>Apple Computers</name>
     <phone>5555-4444</phone>
     <website>http://www.apple.com</website>
   </customer>
 </customers>

Attributes and Elements

XML files are made up of Attributes and Elements. Elements are tags withing the XML file that contain values. For example:

 <name>Data Access</name>

This is an Element called name which has a value of "Data Access". Elements are generally used to store the data being held in an XML file.

Attributes are values which are associated with an element. For example:

 <customer id=2>

The attribute id belongs to the customer element and the value of the attribute is 2. Data stored in attributes are generally used to allow easy processing of the XML file. In this example having an id element allows you to easily find the customer element using a FindNode function.


Using XML with Visual DataFlex

External Links