Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
do any one have idea how to produce xml file using stream writer in vb ???
the element should look like :
XML
<New_Dot>
    <X_coordinate>209</X_coordinate>
    <Y_coordinate>99</Y_coordinate>
    <layer>0</layer>
  </New_Dot>
Posted
Updated 4-May-13 10:41am
v2

1 solution

Writing XML with a StreamWriter is really simple: you may use directly its write methods, e.g.
C#
sw.WriteLine("<new_dot>");</new_dot>

See "How to: Write Text to a File"[^] (remember, XML files are text files).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900