org.geotools.demo.gmlparsing
Class GMLParsing

java.lang.Object
  extended by org.geotools.demo.gmlparsing.GMLParsing

public class GMLParsing
extends java.lang.Object

GML3 Parsing examples.

Author:
Justin Deoliveira, OpenGeo

Constructor Summary
GMLParsing()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void parseGML3()
          Parses GML3 without specifying a schema location.
static void schemaParseGML3()
          Parses GML3 by specifying the schema location.
static void streamParseGML3()
          Parses GML3 without specifying a schema location, and illusrates the use of the streaming parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLParsing

public GMLParsing()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

parseGML3

public static void parseGML3()
                      throws java.lang.Exception
Parses GML3 without specifying a schema location.

Throws:
java.lang.Exception

streamParseGML3

public static void streamParseGML3()
                            throws java.lang.Exception
Parses GML3 without specifying a schema location, and illusrates the use of the streaming parser.

Throws:
java.lang.Exception

schemaParseGML3

public static void schemaParseGML3()
                            throws java.lang.Exception
Parses GML3 by specifying the schema location.

This example first transforms the original file states.xml, and sets its schemaLocation to the states.xsd file.

Throws:
java.lang.Exception


Copyright © 1996-2010 Geotools. All Rights Reserved.