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 do i declare variables with an xml file?

843834Aug 24 2004 — edited Aug 24 2004
it's like, retrieving values like "int BAUDRATE = 9600" from an xml file.

this is my xml file
=============================
<?xml version="1.0" encoding="ISO-8859-1"?>

<Config>
<port>
<NAME>COM1</NAME>
<BAUDRATE>9600</BAUDRATE>
<FLOWCONTROL>FLOWCONTROL_NONE</FLOWCONTROL>
<DATABITS>DATABITS_8</DATABITS>
<STOPBITS>STOPBITS_1</STOPBITS>
<PARITY>PARITY_NONE</PARITY>
</port>
</Config>
=============================
will really appreciate the help given...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 21 2004
Added on Aug 24 2004
3 comments
542 views