hello,
I have a question about using writeXml. When I use this method, it writes to the specified xml file like this:
but, I would like to add these nodes to a parent node, ie:Code:<safety> <Incident> <Name>Jason</Name> <AGE>23</AGE> </Incident> <Incident> <Name>Frank</Name> <AGE>25</AGE> </Incident> </safety>
I am creating the xml by first creating a dataset (connects to an SQL db and runs a query, filling the dataset) and using ds.WriteXML(myPath)Code:<safety> <SomeNode> <Incident> <Name>Jason</Name> <AGE>23</AGE> </Incident> <Incident> <Name>Frank</Name> <AGE>25</AGE> </Incident> </someNode> </safety>
Any suggestions would be great. Thanks
jason




Reply With Quote
