|
 |
|
J2Concept® JAVA GURU |
|
|
|
|
|
|
|
|
|
|
|
|
Sample Practical Hands-on labs |
(More than 20 Hands-on labs in the book !!) |
|
|
Hands-on Lab: Parsing XML Document with SAX |
Author: Chart Krobtragolchai |
Tool: NetBeans 5.0 IDE |
Book Chapter Number: 6 of 12 |
Book Chapter Name: SOAP and XML Processing APIs |
(JAXP, JAXB, and SAAJ) |
Book Topic: Simple API for XML (SAX) |
User Level: Beginner - Intermediate |
Book Availability: Open for Reservation !! |
Pages in web: 1, 2, 3, 4, 5 |
|
|
|
|
|
|
|
|
|
|
|
Hands-on Lab Step (Page 3): |
|
|
|
|
|
6. Next, we will create the XML Document (Train.xml) that is parsed by SAX parser. |
|
|
First, right-click at TrainReader in the Project palette, and then select New > File/Folder.
|
|
|
Select "XML" in the Categories part and then select "XML Document" in the File Types part. Click "Next".
|
|
|
|
|
|

|
|
|
|
|
|
7. Type "Train" in the File Name, and then click "Next >".
|
|
|
|
|
|

|
|
|
|
|
|
translated by J2Concept® |
|
|
Copyright © 2006, J2Concept®. All rights reserved. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|