I have a XML in the following format
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
- <PP gemfgid="DEAPP4144T11G03" type="AssyPPart_GEAE" Value="">
- <WS gemfgid="DEAWS4144T11G03_AGB10" type="AssyWkstn_GEAE" Value="">
<OP gemfgid="DEAOP4144T11G03_AGB10_000" type="AssyOp_GEAE" Value="" tceid="" rev="" pp="" ws="" op="" opDesc="" mOpersKey="" intro="" cutOff="" releaseStatus="" />
<OP gemfgid="DEAOP4144T11G03_AGB10_010" type="AssyOp_GEAE" Value="" tceid="" rev="" pp="" ws="" op="" opDesc="" mOpersKey="" intro="" cutOff="" releaseStatus="" />
<OP gemfgid="DEAOP4144T11G03_AGB10_020" type="AssyOp_GEAE" Value="" tceid="" rev="" pp="" ws="" op="" opDesc="" mOpersKey="" intro="" cutOff="" releaseStatus="" />
<OP gemfgid="DEAOP4144T11G03_AGB10_030" type="AssyOp_GEAE" Value="" tceid="" rev="" pp="" ws="" op="" opDesc="" mOpersKey="" intro="" cutOff="" releaseStatus="" />
<OP gemfgid="DEAOP4144T11G03_AGB10_040" type="AssyOp_GEAE" Value="" tceid="" rev="" pp="" ws="" op="" opDesc="" mOpersKey="" intro="" cutOff="" releaseStatus="" />
<OP gemfgid="DEAOP4144T11G03_AGB10_050" type="AssyOp_GEAE" Value="" tceid="" rev="" pp="" ws="" op="" opDesc="" mOpersKey="" intro="" cutOff="" releaseStatus="" />
<OP gemfgid="DEAOP4144T11G03_AGB10_060" type="AssyOp_GEAE" Value="" tceid="" rev="" pp="" ws="" op="" opDesc="" mOpersKey="" intro="" cutOff="" releaseStatus="" />
<OP gemfgid="DEAOP4144T11G03_AGB10_070" type="AssyOp_GEAE" Value="" tceid="" rev="" pp="" ws="" op="" opDesc="" mOpersKey="" intro="" cutOff="" releaseStatus="" />
<OP gemfgid="DEAOP4144T11G03_AGB10_080" type="AssyOp_GEAE" Value="" tceid="" rev="" pp="" ws="" op="" opDesc="" mOpersKey="" intro="" cutOff="" releaseStatus="" />
<OP gemfgid="DEAOP4144T11G03_AGB10_090" type="AssyOp_GEAE" Value="" tceid="" rev="" pp="" ws="" op="" opDesc="" mOpersKey="" intro="" cutOff="" releaseStatus="" />
</WS>
</PP>
I want to generate hte PDF in following format
PP
I__WS
I___OP
Please help how write a "fo" file for this and generate the PDF