Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

XML File Read

$
0
0
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

Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>