🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.api
Article #1

importing data with java from xml

#1
From: Hugo Bouckaert
Date: Thu, 28 Dec 2000 07:40
35 lines
2201 bytes
Hi 

This is something I don't seem to get a grip on: I would like to use the
Document Object Model or SAX methods with java to import data from an
xml file. I think (hope) I have all the jar files downloaded to provide
me with the native methods to do this. But how? I am really rather lost
here. 

Would someone be able to help me with the following: 

1. Tell me which packages and jar files I need to import xml data using
DOM and/or SAX. 

2. Provide me with a complete code example to do this. If the code
example can include the xml file and its data that would be great as
this would clarify things much better. 

I am sure there is someone out there who is an expert at java and xml -
I am just starting and would really appreciate a simple code example to
get me kickstarted. 

Thanks very much. 

Cheers

Hugo  


-- 
Dr Hugo Bouckaert
R&D Support Engineer, Fractal Graphics 
39 Fairway, Nedlands Western Australia 6009
Tel: +618 9386 7917
Email:hugo@fractalgraphics.com.au
Web: http://www.fractalgraphics.com.au
Technical Details
Message-ID: <3A4AEE6E.ABF3DAFC@fractalgraphics.com.au>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!news.mel.connect.com.au!news.netspace.net.au!newsfeed.iinet.net.au!news.iinet.net.au!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10e2b9,2655ac4ce1af0187,start
X-Google-Attributes: gid10e2b9,public
X-Google-Thread: fecd1,2655ac4ce1af0187,start
X-Google-Attributes: gidfecd1,public
X-Google-Thread: 10d6db,2655ac4ce1af0187,start
X-Google-Attributes: gid10d6db,public
X-Google-Thread: f5e83,2655ac4ce1af0187,start
X-Google-Attributes: gidf5e83,public
X-Google-ArrivalTime: 2000-12-27 23:38:52 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!news.mel.connect.com.au!news.netspace.net.au!newsfeed.iinet.net.au!news.iinet.net.au!not-for-mail
Message-ID: <3A4AEE6E.ABF3DAFC@fractalgraphics.com.au>
Date: Thu, 28 Dec 2000 15:40:30 +0800
From: Hugo Bouckaert <hugo@fractalgraphics.com.au>
X-Mailer: Mozilla 4.61 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.lang.java.api,aus.computers.java,comp.lang.java.softwaretools,comp.lang.java.setup
Subject: importing data with java from xml
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 35
NNTP-Posting-Host: 203.59.23.78
X-Trace: news.iinet.net.au 977989105 18669 203.59.23.78