Wednesday 26 September 2012

XML Schema Tutorial

An XML Schema describes the structure of an XML document.
XML Schema is more powerful than DTDs.
The XML Schema Language is also referred to as XML schema Definition (XSD).

An XML Schema:
  • defines elements that can appear in a document
  • defines attributes that can appear in a document
  • defines which elements are child elements
  • defines the order of child elements
  • defines the number of child elements
  • defines whether an element is empty or can include text
  • defines data types for elements and attributes
  • defines default and fixed values for elements and attributes.

Some benefits of that XML Schemas are written in XML:
  • You don't have to learn a new language
  • You can use your XML editor to edit your Schema files
  • You can use your XML parser to parse your Schema files
  • You can manipulate your Schema with the XML DOM
  • You can transform your Schema with XSLT

 Software: Stylus Studio XML Development Environment

pom.xml

In your pom.xml file, add :
in "repositories" section :

<repository>
     <id>smartgwt</id>
     <url>http://www.smartclient.com/maven2</url>
</repository>

in "dependencies" section :

<dependency>
     <groupId>com.smartgwt</groupId>
     <artifactId>smartgwt</artifactId>
     <version>3.0</version>
</dependency>

No comments:

Post a Comment