Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : XML : Education - Tutorials
XML Schema Infoset Model, Part 2
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
2. Overview of XML Schema documents
  


Exercise 1: Create a root schema document page 2 of 5


The first exercise consists of creating a root schema with target namespace "http://www.eclipse.org/xsd/examples/po". With the help of Part 1, create a schema document using the XML Schema Infoset Model APIs that represents the following:

 
<?xml version="1.0"?> 
<schema targetNamespace="http://www.eclipse.org/xsd/examples/po" 
xmlns="http://www.w3.org/2001/XMLSchema" 
xmlns:po="http://www.eclipse.org/xsd/examples/po"/> 

Hint: You will need to use org.eclipse.xsd.XSDFactory.eINSTANCE to create the schema constructs.

New constructs created in this exercise:

  • <schema> - root schema with targetNamespace="http://www.eclipse.org/xsd/examples/po"
Solution: Exercise 1 solution


Main menuSection menuFeedbackPreviousNext
About IBM | Privacy | Legal | Contact