Hello,
Need a help, I am trying to read a XML file with Pretty bad xml structure. Structure looks like this. I need to read dates from this. E.g When productdatestype node is VendorBookingDate, the next node hold the date value. I am still trying to figure this out. Any help is appreciated.
<?xml version="1.0"?>
<Header>
<Lines>
<Product>001000</Product>
<ProductDates>
<ProductDatesType>VendorBookingDate</ProductDatesType>
<ProductDatesDate>20200630</ProductDatesDate>
</ProductDates>
<ProductDates>
<ProductDatesType>PurchaseOrderDate</ProductDatesType>
<ProductDatesDate>20200629</ProductDatesDate>
</ProductDates>
<ProductDates>
<ProductDatesType>ReqOriginDate</ProductDatesType>
<ProductDatesDate>20200922</ProductDatesDate>
</ProductDates>
</Lines>
<Lines>
<Product>001001</Product>
<ProductDates>
<ProductDatesType>VendorBookingDate</ProductDatesType>
<ProductDatesDate>20200630</ProductDatesDate>
</ProductDates>
<ProductDates>
<ProductDatesType>PurchaseOrderDate</ProductDatesType>
<ProductDatesDate>20200629</ProductDatesDate>
</ProductDates>
<ProductDates>
<ProductDatesType>ReqOriginDate</ProductDatesType>
<ProductDatesDate>20200922</ProductDatesDate>
</ProductDates>
</Lines>
</Header>
Thank You,
Anmol
Need a help, I am trying to read a XML file with Pretty bad xml structure. Structure looks like this. I need to read dates from this. E.g When productdatestype node is VendorBookingDate, the next node hold the date value. I am still trying to figure this out. Any help is appreciated.
<?xml version="1.0"?>
<Header>
<Lines>
<Product>001000</Product>
<ProductDates>
<ProductDatesType>VendorBookingDate</ProductDatesType>
<ProductDatesDate>20200630</ProductDatesDate>
</ProductDates>
<ProductDates>
<ProductDatesType>PurchaseOrderDate</ProductDatesType>
<ProductDatesDate>20200629</ProductDatesDate>
</ProductDates>
<ProductDates>
<ProductDatesType>ReqOriginDate</ProductDatesType>
<ProductDatesDate>20200922</ProductDatesDate>
</ProductDates>
</Lines>
<Lines>
<Product>001001</Product>
<ProductDates>
<ProductDatesType>VendorBookingDate</ProductDatesType>
<ProductDatesDate>20200630</ProductDatesDate>
</ProductDates>
<ProductDates>
<ProductDatesType>PurchaseOrderDate</ProductDatesType>
<ProductDatesDate>20200629</ProductDatesDate>
</ProductDates>
<ProductDates>
<ProductDatesType>ReqOriginDate</ProductDatesType>
<ProductDatesDate>20200922</ProductDatesDate>
</ProductDates>
</Lines>
</Header>
Thank You,
Anmol