1 Reply Latest reply: Sep 19, 2011 8:57 PM by EJP RSS

    Reading XML using java

    783107
      Hi All,
      XML Document to be read is :

      <client name='A'>
      <FileToBeProcessed>FA1</FileToBeProcessed>
      <FileToBeProcessed>FA2</FileToBeProcessed>
      <FileToBeProcessed>FA3</FileToBeProcessed>
      </client>

      <client name='B'>
      <FileToBeProcessed>FB1</FileToBeProcessed>
      <FileToBeProcessed>FB2</FileToBeProcessed>
      <FileToBeProcessed>FB3</FileToBeProcessed>
      </client>


      I want to get all the file names to be processed by client A in one java array. How can I read and search in such type of xml file using java?

      If this is not the correct way of writing xml then can you suggest some other alternative and corresponding java solution to read such kind of xml format?

      Thanks in advance... :-)