• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

simple question: how to return specific element value

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
example:
method1 passes an already parsed Document to public void method2(Document doc).
question: within method2, how can i return the value for a specific element? i.e <Partner>myPartner</Partner> i want to return myPartner value.
i've used XPathAPI.selectSingleNode to return the appropriate element<Partner>, but do not know how to return the elements value. i've been able to return the elements attributes, but that only gets me half there.
any suggestions?
many thanks,
-MCore
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic