Article View: borland.public.jbuilder.java.api
Article #832Re: XML parser using xerces 1.4.4
From: forums.inprise.com
Date: Tue, 10 Sep 2002 18:21
Date: Tue, 10 Sep 2002 18:21
31 lines
2255 bytes
2255 bytes
1) Xerces is checking for well formed XML but is not using the DTD (that is
referenced in the XML document) to validate it. My understanding of xerces
it will validate the XML based on the rules set in the referenced DTD. If I
remove the DTDs from the directory, I will receive an error that the DTDs
file were not found, but does not validated the XML.
"Shankar Unni" <shankar@cotagesoft.com> wrote in message
news:3D7E1C87.4080405@cotagesoft.com...
> forums.inprise.com wrote:
>
> > 1) I am having trouble getting xerces to validate the XML document. I am
> > using the following Java code ...
> > [ example snipped ]
>
> What trouble, exactly? (Messages? Misbehavior? If so, how do you know it
> has misbehaved? What were you expecting, and what did you see?)
>
> ("911? There's something going on around here. <click>". What's this? 20
> questions?).
>
> > 2) I am looking for examples using the DOM Parser (using xerces) to
create
> > the DOM object [etc]
>
> This sounds like an application for XPath processing. Compose an XPath
> that describes the "path" to the node(s) of interest, and process it to
> get back a NodeSet (which is a simple collection that you can iterate
over).
> --
> Shankar.
>
Technical Details
Message-ID:
<3d7e3845$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!news1.optus.net.au!optus!news.mel.connect.com.au!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3d7e0531@newsgroups.borland.com> <3D7E1C87.4080405@cotagesoft.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,86a84a66bd323ad5 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-09-10 12:05:14 PST From: "forums.inprise.com" <tom.dirksen@mindspring.com> Newsgroups: borland.public.jbuilder.java.api References: <3d7e0531@newsgroups.borland.com> <3D7E1C87.4080405@cotagesoft.com> Subject: Re: XML parser using xerces 1.4.4 Date: Tue, 10 Sep 2002 13:21:42 -0500 Lines: 33 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: <3d7e3845$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1031682117 66.88.39.226 (10 Sep 2002 11:21:57 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!news1.optus.net.au!optus!news.mel.connect.com.au!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail