Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can this xml structure be read and edited?

Status
Not open for further replies.

Bob2

Programmer
Jul 3, 2000
228
0
0
SE
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
 
Hi Keith



Thanks for your reply. Read the file I can, but can it be editable to using the datagrid or someother way I dont know about?


Regards

M
 
Super High Level...

Read The file it into a dataset,
Bind that to a datagrid and then use standard datagrid editing techniques.

Datasets can save read and write XML very nicely




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top