Ajuda com string-arrays

  • Respostas:0
Nilmar Castro
  • Posts no fórum: 3

18/10/2018, 23:32:13 via Web

Hi everybody..

I have the following XML:

<?xml version="1.0"?> 
<pcodes>
    <p0000>
        <name>No fault</name>
    </p0000>
    <p0001>
        <name>Fuel volume regulator control -circuit open</name>
    </p0001>
    <p0002>
        <name>Fuel volume regulator control -circuit range/performance</name>
    </p0002>
    <p0004>
        <name>Fuel volume regulator control -circuit low</name>
    </p0004>
    <p0005>
        <name>Fuel volume regulator control -circuit high</name>
    </p0005>
    <p0006>
        <name>Fuel shut -off valve -circuit open</name>
    </p0006>
.
.
.
.
.
.
.

</pcodes> 

I need to access the "name" text based on the pxxxx index using java.
The xml file has about 3000 lines.
Can someone tell me how to do this, or show me the best way?

Thanks

Seja o primeiro a responder