Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get value in xml file with JAXB libs

vxbaJul 21 2016 — edited Sep 27 2016

I have xml contents as below and how to get the value of userName or password

<connect>

    <connectconfig>
      <context>
           <config name="testPDF" value="test.demo.demo1"/>
           <config name="url" value="test.demo.server@pdf1.server1"/>
           <config name="userName" value="userDemo"/>
           <config name="password" value="userDemo"/>
    </context>
<connectconfig>
<connect>

Thank all !

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2016
Added on Jul 21 2016
1 comment
847 views