I am not a programmer and hoping someone can point me to an app/program that will help my client out.
Have 1 great big xml file with approx 200+ orders in it.
Need each order to be extracted into it's own 'file' as to then process into an order system.
For example these 3 orders are in the file & ultimately 1 need each one to be it's own file.
So I'd end up file1.xml, file2.xml, file3.xml
The break between orders is <order></order>...
I'm really hoping to avoid having to pull each record out manually knowing how many records there are.
Any help or pointing to a program that a non-programmer can use would be greatly appreciated.
Thank you
<Order>
<ShipmentServiceLevelCategory>SecondDay</ShipmentServiceLevelCategory>
<OrderTotal>
<Amount>127.35</Amount>
<CurrencyCode>USD</CurrencyCode>
</OrderTotal>
<ShipServiceLevel>SecondDay</ShipServiceLevel>
<LatestShipDate>2014-12-03T03:04:00Z</LatestShipDate>
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
<SalesChannel>Amazon.com</SalesChannel>
<ShippingAddress>
<Phone>5015555555</Phone>
<PostalCode>72020</PostalCode>
<Name>sample name</Name>
<CountryCode>US</CountryCode>
<StateOrRegion>Arkansas</StateOrRegion>
<AddressLine1>555 main</AddressLine1>
<City>Bradford</City>
</ShippingAddress>
<OrderType>StandardOrder</OrderType>
<SellerOrderId>109-9264954-9814647</SellerOrderId>
<BuyerEmail>p5lbtkmc6x6f5y0@marketplace.amazon.com</BuyerEmail>
<FulfillmentChannel>AFN</FulfillmentChannel>
<OrderStatus>Shipped</OrderStatus>
<BuyerName>sample name</BuyerName>
<LastUpdateDate>2014-12-03T03:20:47Z</LastUpdateDate>
<EarliestShipDate>2014-12-03T03:04:00Z</EarliestShipDate>
<PurchaseDate>2014-12-02T02:37:42Z</PurchaseDate>
<NumberOfItemsUnshipped>0</NumberOfItemsUnshipped>
<AmazonOrderId>109-9264954-9814647</AmazonOrderId>
<NumberOfItemsShipped>1</NumberOfItemsShipped>
<PaymentMethod>Other</PaymentMethod>
</Order>
<Order>
<ShipmentServiceLevelCategory>SecondDay</ShipmentServiceLevelCategory>
<OrderTotal>
<Amount>35.88</Amount>
<CurrencyCode>USD</CurrencyCode>
</OrderTotal>
<ShipServiceLevel>SecondDay</ShipServiceLevel>
<LatestShipDate>2014-12-02T14:09:57Z</LatestShipDate>
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
<SalesChannel>Amazon.com</SalesChannel>
<ShippingAddress>
<Phone>270-555-5555</Phone>
<PostalCode>42129</PostalCode>
<Name>sample2</Name>
<CountryCode>US</CountryCode>
<StateOrRegion>KY</StateOrRegion>
<AddressLine2>106 S. main St.</AddressLine2>
<AddressLine1>P.O. Box 1</AddressLine1>
<City>Edmonton</City>
</ShippingAddress>
<OrderType>StandardOrder</OrderType>
<SellerOrderId>108-3617067-1489801</SellerOrderId>
<BuyerEmail>g3n55s57mf0fn2f@marketplace.amazon.com</BuyerEmail>
<FulfillmentChannel>AFN</FulfillmentChannel>
<OrderStatus>Shipped</OrderStatus>
<BuyerName>sample2</BuyerName>
<LastUpdateDate>2014-12-02T14:12:35Z</LastUpdateDate>
<EarliestShipDate>2014-12-02T14:09:57Z</EarliestShipDate>
<PurchaseDate>2014-12-02T02:37:57Z</PurchaseDate>
<NumberOfItemsUnshipped>0</NumberOfItemsUnshipped>
<AmazonOrderId>108-3617067-1489801</AmazonOrderId>
<NumberOfItemsShipped>1</NumberOfItemsShipped>
<PaymentMethod>Other</PaymentMethod>
</Order>
<Order>
<ShipmentServiceLevelCategory>SecondDay</ShipmentServiceLevelCategory>
<OrderTotal>
<Amount>50.78</Amount>
<CurrencyCode>USD</CurrencyCode>
</OrderTotal>
<ShipServiceLevel>SecondDay</ShipServiceLevel>
<LatestShipDate>2014-12-02T18:59:28Z</LatestShipDate>
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
<SalesChannel>Amazon.com</SalesChannel>
<ShippingAddress>
<Phone>714-555-5555</Phone>
<PostalCode>92506-2469</PostalCode>
<Name>sample3</Name>
<CountryCode>US</CountryCode>
<StateOrRegion>CA</StateOrRegion>
<AddressLine1>555 test address</AddressLine1>
<City>RIVERSIDE</City>
</ShippingAddress>
<OrderType>StandardOrder</OrderType>
<SellerOrderId>002-4671276-0885017</SellerOrderId>
<BuyerEmail>2bg20j5gv8zwmlh@marketplace.amazon.com</BuyerEmail>
<FulfillmentChannel>AFN</FulfillmentChannel>
<OrderStatus>Shipped</OrderStatus>
<BuyerName>sample3</BuyerName>
<LastUpdateDate>2014-12-03T00:55:02Z</LastUpdateDate>
<EarliestShipDate>2014-12-02T18:59:28Z</EarliestShipDate>
<PurchaseDate>2014-12-02T02:38:07Z</PurchaseDate>
<NumberOfItemsUnshipped>0</NumberOfItemsUnshipped>
<AmazonOrderId>002-4671276-0885017</AmazonOrderId>
<NumberOfItemsShipped>1</NumberOfItemsShipped>
<PaymentMethod>Other</PaymentMethod>
</Order>
<Order>
<ShipmentServiceLevelCategory>Standard</ShipmentServiceLevelCategory>
<ShipServiceLevel>Standard</ShipServiceLevel>
<LatestShipDate>2014-12-09T07:59:59Z</LatestShipDate>
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
<SalesChannel>Amazon.com</SalesChannel>
<OrderType>StandardOrder</OrderType>
<SellerOrderId>111-6118963-7054668</SellerOrderId>
<FulfillmentChannel>AFN</FulfillmentChannel>
<OrderStatus>Pending</OrderStatus>
<LastUpdateDate>2014-12-02T02:58:32Z</LastUpdateDate>
<EarliestShipDate>2014-12-09T07:59:59Z</EarliestShipDate>
<PurchaseDate>2014-12-02T02:41:05Z</PurchaseDate>
<NumberOfItemsUnshipped>1</NumberOfItemsUnshipped>
<AmazonOrderId>111-6118963-7054668</AmazonOrderId>
<NumberOfItemsShipped>0</NumberOfItemsShipped>
<PaymentMethod>Other</PaymentMethod>
</Order>
</Orders>
Have 1 great big xml file with approx 200+ orders in it.
Need each order to be extracted into it's own 'file' as to then process into an order system.
For example these 3 orders are in the file & ultimately 1 need each one to be it's own file.
So I'd end up file1.xml, file2.xml, file3.xml
The break between orders is <order></order>...
I'm really hoping to avoid having to pull each record out manually knowing how many records there are.
Any help or pointing to a program that a non-programmer can use would be greatly appreciated.
Thank you
<Order>
<ShipmentServiceLevelCategory>SecondDay</ShipmentServiceLevelCategory>
<OrderTotal>
<Amount>127.35</Amount>
<CurrencyCode>USD</CurrencyCode>
</OrderTotal>
<ShipServiceLevel>SecondDay</ShipServiceLevel>
<LatestShipDate>2014-12-03T03:04:00Z</LatestShipDate>
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
<SalesChannel>Amazon.com</SalesChannel>
<ShippingAddress>
<Phone>5015555555</Phone>
<PostalCode>72020</PostalCode>
<Name>sample name</Name>
<CountryCode>US</CountryCode>
<StateOrRegion>Arkansas</StateOrRegion>
<AddressLine1>555 main</AddressLine1>
<City>Bradford</City>
</ShippingAddress>
<OrderType>StandardOrder</OrderType>
<SellerOrderId>109-9264954-9814647</SellerOrderId>
<BuyerEmail>p5lbtkmc6x6f5y0@marketplace.amazon.com</BuyerEmail>
<FulfillmentChannel>AFN</FulfillmentChannel>
<OrderStatus>Shipped</OrderStatus>
<BuyerName>sample name</BuyerName>
<LastUpdateDate>2014-12-03T03:20:47Z</LastUpdateDate>
<EarliestShipDate>2014-12-03T03:04:00Z</EarliestShipDate>
<PurchaseDate>2014-12-02T02:37:42Z</PurchaseDate>
<NumberOfItemsUnshipped>0</NumberOfItemsUnshipped>
<AmazonOrderId>109-9264954-9814647</AmazonOrderId>
<NumberOfItemsShipped>1</NumberOfItemsShipped>
<PaymentMethod>Other</PaymentMethod>
</Order>
<Order>
<ShipmentServiceLevelCategory>SecondDay</ShipmentServiceLevelCategory>
<OrderTotal>
<Amount>35.88</Amount>
<CurrencyCode>USD</CurrencyCode>
</OrderTotal>
<ShipServiceLevel>SecondDay</ShipServiceLevel>
<LatestShipDate>2014-12-02T14:09:57Z</LatestShipDate>
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
<SalesChannel>Amazon.com</SalesChannel>
<ShippingAddress>
<Phone>270-555-5555</Phone>
<PostalCode>42129</PostalCode>
<Name>sample2</Name>
<CountryCode>US</CountryCode>
<StateOrRegion>KY</StateOrRegion>
<AddressLine2>106 S. main St.</AddressLine2>
<AddressLine1>P.O. Box 1</AddressLine1>
<City>Edmonton</City>
</ShippingAddress>
<OrderType>StandardOrder</OrderType>
<SellerOrderId>108-3617067-1489801</SellerOrderId>
<BuyerEmail>g3n55s57mf0fn2f@marketplace.amazon.com</BuyerEmail>
<FulfillmentChannel>AFN</FulfillmentChannel>
<OrderStatus>Shipped</OrderStatus>
<BuyerName>sample2</BuyerName>
<LastUpdateDate>2014-12-02T14:12:35Z</LastUpdateDate>
<EarliestShipDate>2014-12-02T14:09:57Z</EarliestShipDate>
<PurchaseDate>2014-12-02T02:37:57Z</PurchaseDate>
<NumberOfItemsUnshipped>0</NumberOfItemsUnshipped>
<AmazonOrderId>108-3617067-1489801</AmazonOrderId>
<NumberOfItemsShipped>1</NumberOfItemsShipped>
<PaymentMethod>Other</PaymentMethod>
</Order>
<Order>
<ShipmentServiceLevelCategory>SecondDay</ShipmentServiceLevelCategory>
<OrderTotal>
<Amount>50.78</Amount>
<CurrencyCode>USD</CurrencyCode>
</OrderTotal>
<ShipServiceLevel>SecondDay</ShipServiceLevel>
<LatestShipDate>2014-12-02T18:59:28Z</LatestShipDate>
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
<SalesChannel>Amazon.com</SalesChannel>
<ShippingAddress>
<Phone>714-555-5555</Phone>
<PostalCode>92506-2469</PostalCode>
<Name>sample3</Name>
<CountryCode>US</CountryCode>
<StateOrRegion>CA</StateOrRegion>
<AddressLine1>555 test address</AddressLine1>
<City>RIVERSIDE</City>
</ShippingAddress>
<OrderType>StandardOrder</OrderType>
<SellerOrderId>002-4671276-0885017</SellerOrderId>
<BuyerEmail>2bg20j5gv8zwmlh@marketplace.amazon.com</BuyerEmail>
<FulfillmentChannel>AFN</FulfillmentChannel>
<OrderStatus>Shipped</OrderStatus>
<BuyerName>sample3</BuyerName>
<LastUpdateDate>2014-12-03T00:55:02Z</LastUpdateDate>
<EarliestShipDate>2014-12-02T18:59:28Z</EarliestShipDate>
<PurchaseDate>2014-12-02T02:38:07Z</PurchaseDate>
<NumberOfItemsUnshipped>0</NumberOfItemsUnshipped>
<AmazonOrderId>002-4671276-0885017</AmazonOrderId>
<NumberOfItemsShipped>1</NumberOfItemsShipped>
<PaymentMethod>Other</PaymentMethod>
</Order>
<Order>
<ShipmentServiceLevelCategory>Standard</ShipmentServiceLevelCategory>
<ShipServiceLevel>Standard</ShipServiceLevel>
<LatestShipDate>2014-12-09T07:59:59Z</LatestShipDate>
<MarketplaceId>ATVPDKIKX0DER</MarketplaceId>
<SalesChannel>Amazon.com</SalesChannel>
<OrderType>StandardOrder</OrderType>
<SellerOrderId>111-6118963-7054668</SellerOrderId>
<FulfillmentChannel>AFN</FulfillmentChannel>
<OrderStatus>Pending</OrderStatus>
<LastUpdateDate>2014-12-02T02:58:32Z</LastUpdateDate>
<EarliestShipDate>2014-12-09T07:59:59Z</EarliestShipDate>
<PurchaseDate>2014-12-02T02:41:05Z</PurchaseDate>
<NumberOfItemsUnshipped>1</NumberOfItemsUnshipped>
<AmazonOrderId>111-6118963-7054668</AmazonOrderId>
<NumberOfItemsShipped>0</NumberOfItemsShipped>
<PaymentMethod>Other</PaymentMethod>
</Order>
</Orders>