Reading multiple pieces of data enclosed by a tag in XML using Java
I know that there are a couple questions regarding reading XML data into
Java but none of the questions I've seen have the answer I need. (I also
know little about XML terminology) I have a bunch of data that I need that
appear to be enclosed in a tag. For example:
<powerplay ppg="28" ppopp="176" pppct=".159" pk="171" pkopp="193"
pkpct=".886"/>
I'd like to be able to store the numbers as my information. Any
information would be appreciated.
Note: the "powerplay" tag is enclosed by a
<team......../team>
tag, so is that simple to direct my program to this specific line through
the DOM?
Thanks!
No comments:
Post a Comment