Albert's Blog

Welcome to visit Albert Guo's blog!!

2004/09/28

An example to parse a xml file

the xml file content:download



abstract:
1. We need to parse the values which enclose in "username", "password", and "url" tags. And the three tags enclose in "application_server_setup"
2. We need to retireve the "name" attribute in "Form" tag
3. In each "Form" tag, it has some "Role" tags, we need to get the "name", and "sequence" atrribute in each "Role" tag



Sample code: ParseXML.java

Posted by Albert Kuo at 10:04 a.m.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2006 (20)
    • ►  December (3)
    • ►  August (3)
    • ►  June (2)
    • ►  May (2)
    • ►  April (3)
    • ►  March (5)
    • ►  February (1)
    • ►  January (1)
  • ►  2005 (67)
    • ►  December (4)
    • ►  November (11)
    • ►  October (6)
    • ►  September (16)
    • ►  August (8)
    • ►  July (1)
    • ►  April (2)
    • ►  March (3)
    • ►  January (16)
  • ▼  2004 (64)
    • ►  December (5)
    • ►  November (9)
    • ►  October (3)
    • ▼  September (9)
      • An example to transfer object
      • An example to parse a xml file
      • Wiring Your Web Application with Open Source Java
      • TOEIC Exam Information
      • E-Mailing Through Java
      • JavaMail quick start
      • Write a Simple Program to Upload a File to FTP Se...
      • 軟體業沒希望! 台灣亟待痛定思痛
      • 從30萬到24億的軟體金童傳奇
    • ►  August (4)
    • ►  July (17)
    • ►  June (17)

About Me

Albert Kuo
View my complete profile
Simple theme. Powered by Blogger.