🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #9880

java - xml - xerces

#9880
From: jo
Date: Fri, 05 Apr 2002 13:45
25 lines
1267 bytes
stel ik heb een xml file

<root>
  <node1>
    <node2>
      foobar
    </node2>
  </node1>
</root>


is het dan mogelijk om, nadat ik met Xerces een Document object van
deze xml gemaakt heb rechtstreeks de waarde "foobar" op te vragen.

zoiets in de aard van:

String result = docObject.getNodeValue("root/node1/node2");

Het lukt me door het Document object "schil per schil" uit elkaar te
halen.
Maar als je laatste element 7 nodes diep zit is dit nogal
onproductief.

bedankt,
jo
Technical Details
Message-ID: <ca767550.0204050545.59606afd@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,e6c90349da306e8f,start
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-04-05 05:45:30 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: jklaps@hotmail.com (jo)
Newsgroups: be.comp.programming
Subject: java - xml - xerces
Date: 5 Apr 2002 05:45:30 -0800
Organization: http://groups.google.com/
Lines: 25
Message-ID: <ca767550.0204050545.59606afd@posting.google.com>
NNTP-Posting-Host: 148.177.130.120
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1018014330 8263 127.0.0.1 (5 Apr 2002 13:45:30 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 5 Apr 2002 13:45:30 GMT