I am trying to fetch xml through postman into spring boot rest api. But having a problem while fetching the data from it. How to parse it into spring boot application and get the attributes values. Otherwise, How to fetch xml data by creating pojo class.
Following is the xml file:
<Transmission>
<TransmissionHeader/>
<TransmissionBody>
<GLogXMLElement>
<TransmissionReport>
<Name>FUEL</Name>
<Number>57</Number>
<Status>PROCESSED</Status>
<TransmissionSummary>
<FirstTransactionNo>1017</FirstTransactionNo>
<LastTransactionNo>1017</LastTransactionNo>
</TransmissionSummary>
</TransmissionReport>
</GLogXMLElement>
</TransmissionBody>
</Transmission>
Thanks in advance.