Hi
I wonder if it possible to read and edit a xml file that have this structure..
<?xml version="1.0" encoding="UTF-8"?>
<Orders>
<Order>
<OrderID>123</OrderID>
<OrderDate>2004-05-01</OrderDate>
<CustID>2233</CustID>
<CustName>Company Name</CustName>
<CustRef>John Brown</CustRef>
<DeliveryAdress>Complete Delivery Address</DeliveryAdress>
<OurRef>WebbOrder</OurRef>
<Products>
<Product>
<Artno>1122-3</Artno>
<ArtDescriprion>Product 1</ArtDescriprion>
<ArtGroup>Print</ArtGroup>
<Qty>200</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
<Product>
<Artno>1122-4</Artno>
<ArtDescriprion>Product 2</ArtDescriprion>
<ArtGroup>Print</ArtGroup>
<Qty>300</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
<Product>
<Artno>1122-5</Artno>
<ArtDescriprion>Product 3</ArtDescriprion>
<ArtGroup>None</ArtGroup>
<Qty>400</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
</Products>
</Order>
<Order>
<OrderID>456</OrderID>
<OrderDate>2004-03-01</OrderDate>
<CustID>2243</CustID>
<CustName>Company Name</CustName>
<CustRef>John Smith</CustRef>
<DeliveryAdress>Complete Delivery Address</DeliveryAdress>
<OurRef>WebbOrder</OurRef>
<Products>
<Product>
<Artno>1122-3</Artno>
<ArtDescriprion>Product 1</ArtDescriprion>
<ArtGroup>Print</ArtGroup>
<Qty>200</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
<Product>
<Artno>1122-4</Artno>
<ArtDescriprion>Product 2</ArtDescriprion>
<ArtGroup>Print</ArtGroup>
<Qty>300</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
<Product>
<Artno>1122-5</Artno>
<ArtDescriprion>Product 3</ArtDescriprion>
<ArtGroup>None</ArtGroup>
<Qty>400</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
</Products>
</Order>
<Orders>
With a datagrid? Or is there something more that needs to be added to get it work, or do it need another structure?
Regards
M
I wonder if it possible to read and edit a xml file that have this structure..
<?xml version="1.0" encoding="UTF-8"?>
<Orders>
<Order>
<OrderID>123</OrderID>
<OrderDate>2004-05-01</OrderDate>
<CustID>2233</CustID>
<CustName>Company Name</CustName>
<CustRef>John Brown</CustRef>
<DeliveryAdress>Complete Delivery Address</DeliveryAdress>
<OurRef>WebbOrder</OurRef>
<Products>
<Product>
<Artno>1122-3</Artno>
<ArtDescriprion>Product 1</ArtDescriprion>
<ArtGroup>Print</ArtGroup>
<Qty>200</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
<Product>
<Artno>1122-4</Artno>
<ArtDescriprion>Product 2</ArtDescriprion>
<ArtGroup>Print</ArtGroup>
<Qty>300</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
<Product>
<Artno>1122-5</Artno>
<ArtDescriprion>Product 3</ArtDescriprion>
<ArtGroup>None</ArtGroup>
<Qty>400</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
</Products>
</Order>
<Order>
<OrderID>456</OrderID>
<OrderDate>2004-03-01</OrderDate>
<CustID>2243</CustID>
<CustName>Company Name</CustName>
<CustRef>John Smith</CustRef>
<DeliveryAdress>Complete Delivery Address</DeliveryAdress>
<OurRef>WebbOrder</OurRef>
<Products>
<Product>
<Artno>1122-3</Artno>
<ArtDescriprion>Product 1</ArtDescriprion>
<ArtGroup>Print</ArtGroup>
<Qty>200</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
<Product>
<Artno>1122-4</Artno>
<ArtDescriprion>Product 2</ArtDescriprion>
<ArtGroup>Print</ArtGroup>
<Qty>300</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
<Product>
<Artno>1122-5</Artno>
<ArtDescriprion>Product 3</ArtDescriprion>
<ArtGroup>None</ArtGroup>
<Qty>400</Qty>
<Discount>10</Discount>
<Unit>st</Unit>
</Product>
</Products>
</Order>
<Orders>
With a datagrid? Or is there something more that needs to be added to get it work, or do it need another structure?
Regards
M