This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2003-2010 Christian d'Heureuse, Inventec Informatik AG, Zurich, Switzerland | |
// www.source-code.biz, www.inventec.ch/chdh | |
// | |
// This module is multi-licensed and may be used under the terms | |
// of any of the following licenses: | |
// | |
// EPL, Eclipse Public License, V1.0 or later, http://www.eclipse.org/legal | |
// LGPL, GNU Lesser General Public License, V2.1 or later, http://www.gnu.org/licenses/lgpl.html | |
// GPL, GNU General Public License, V2 or later, http://www.gnu.org/licenses/gpl.html | |
// AL, Apache License, V2.0 or later, http://www.apache.org/licenses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package xmlstudy; | |
import javax.xml.stream.*; | |
import java.net.URL; | |
import java.io.*; | |
/* | |
* XMLStreamReader is the key interface in StAX. This interface represents a cursor | |
that's moved across an XML document from beginning to end. At any given time, this | |
cursor points at one thing: a text node, a start-tag, a comment, the beginning of |