Article View: borland.public.jbuilder.java.api
Article #831XML parser using xerces 1.4.4
From: forums.inprise.com
Date: Tue, 10 Sep 2002 14:43
Date: Tue, 10 Sep 2002 14:43
19 lines
1816 bytes
1816 bytes
I am trying to parse a XML document using apache's xerces 1.4.4 parser. I
have a few questions:
1) I am having trouble getting xerces to validate the XML document. I am
using the following Java code ...
DOMParser oDOMParser = new DOMParser();
oDOMParser.setFeature("http://xml.org/sax/features/validation", true);
oDOMParser.parse(sFileName);
Document oDocument = oDOMParser.getDocument();
2) I am looking for examples using the DOM Parser (using xerces) to create
the DOM object, move to the first occurrence of a tag (full path of a tag),
check form existence of tags relative to where I am in the DOM tree and
retrieve tag values by name that are relative to where I am in the DOM tree.
Then move to the next occurrence the tag that I initially move to.
Thanks!
Technical Details
Message-ID:
<3d7e0531@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!telocity-west!TELOCITY!news-out.spamkiller.net!propagator-maxim!news-in.spamkiller.net!tethys.csu.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,86a84a66bd323ad5,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-09-10 08:47:40 PST From: "forums.inprise.com" <tom.dirksen@mindspring.com> Newsgroups: borland.public.jbuilder.java.api Subject: XML parser using xerces 1.4.4 Date: Tue, 10 Sep 2002 09:43:45 -0500 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 NNTP-Posting-Host: 66.88.39.226 Message-ID: <3d7e0531@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1031669041 66.88.39.226 (10 Sep 2002 07:44:01 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!telocity-west!TELOCITY!news-out.spamkiller.net!propagator-maxim!news-in.spamkiller.net!tethys.csu.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail