Hello,
Thank you so much for your time and help! I am trying to extract tax data from a large XML that contains several things. Here is an example of a piece of data:
<Order>
<OrderID>105-8920931-7716261</OrderID>
<PurchaseDate>2011-05-01T04:39:41+00:00</PurchaseDate>
<LastUpdatedDate>2011-05-01T11:38:02+00:00</LastUpdatedDate>
<OrderStatus>Shipped</OrderStatus>
<SalesChannel>merchant</SalesChannel>
<FulfillmentData>
<FulfillmentChannel>Merchant</FulfillmentChannel>
<ShipServiceLevel>Standard</ShipServiceLevel>
<Address>
<City>SHERMAN</City>
<State>TX</State>
<PostalCode>75090-3488</PostalCode>
<Country>US</Country>
</Address>
</FulfillmentData>
<OrderItem>
<ASIN>B0022R74BC</ASIN>
<SKU>MN-UPDC-Q1H3</SKU>
<ItemStatus>Shipped</ItemStatus>
<ProductName>Merkur Futur Double Edge Safety Razor #700 + 5 Free DE Razor Blades</ProductName>
<Quantity>2</Quantity>
<ItemPrice>
<Component>
<Type>Principal</Type>
<Amount currency="USD">140.0</Amount>
</Component>
<Component>
<Type>Tax</Type>
<Amount currency="USD">8.76</Amount>
</Component>
<Component>
<Type>Shipping</Type>
<Amount currency="USD">23.99</Amount>
</Component>
<Component>
<Type>ShippingTax</Type>
<Amount currency="USD">1.5</Amount>
</Component>
</ItemPrice>
</OrderItem>
</Order>
I have a list of thousands of these in one single column (one after the other). What I need to extract is the "Tax" amount collected. In this case, Tax is represented by:
<Component>
<Type>Tax</Type>
<Amount currency="USD">8.76</Amount>
</Component>
<Component>
What I want is an easy way to extract the 8.76 and perhaps put it in a separate column or some way in which I can add all of the taxes collected in an XML file that contains thousands of these individual transactions.
Your help would be much appreciated! Thanks so much for a great forum!!
Thank you so much for your time and help! I am trying to extract tax data from a large XML that contains several things. Here is an example of a piece of data:
<Order>
<OrderID>105-8920931-7716261</OrderID>
<PurchaseDate>2011-05-01T04:39:41+00:00</PurchaseDate>
<LastUpdatedDate>2011-05-01T11:38:02+00:00</LastUpdatedDate>
<OrderStatus>Shipped</OrderStatus>
<SalesChannel>merchant</SalesChannel>
<FulfillmentData>
<FulfillmentChannel>Merchant</FulfillmentChannel>
<ShipServiceLevel>Standard</ShipServiceLevel>
<Address>
<City>SHERMAN</City>
<State>TX</State>
<PostalCode>75090-3488</PostalCode>
<Country>US</Country>
</Address>
</FulfillmentData>
<OrderItem>
<ASIN>B0022R74BC</ASIN>
<SKU>MN-UPDC-Q1H3</SKU>
<ItemStatus>Shipped</ItemStatus>
<ProductName>Merkur Futur Double Edge Safety Razor #700 + 5 Free DE Razor Blades</ProductName>
<Quantity>2</Quantity>
<ItemPrice>
<Component>
<Type>Principal</Type>
<Amount currency="USD">140.0</Amount>
</Component>
<Component>
<Type>Tax</Type>
<Amount currency="USD">8.76</Amount>
</Component>
<Component>
<Type>Shipping</Type>
<Amount currency="USD">23.99</Amount>
</Component>
<Component>
<Type>ShippingTax</Type>
<Amount currency="USD">1.5</Amount>
</Component>
</ItemPrice>
</OrderItem>
</Order>
I have a list of thousands of these in one single column (one after the other). What I need to extract is the "Tax" amount collected. In this case, Tax is represented by:
<Component>
<Type>Tax</Type>
<Amount currency="USD">8.76</Amount>
</Component>
<Component>
What I want is an easy way to extract the 8.76 and perhaps put it in a separate column or some way in which I can add all of the taxes collected in an XML file that contains thousands of these individual transactions.
Your help would be much appreciated! Thanks so much for a great forum!!
Last edited: