[Csv]PEP 305
Shiva Kumar
manian at dishnetdsl.net
Tue Apr 13 02:19:45 EDT 2004
hi,
following code will be giving namespace error,plz find out what is the wrong in this & plz send meback to correct code.
import System.Xml;
importMicrosoft.Xml;
public class Test {
public static void Main(){
XmlDocument doc = new XmlDocument();
XmlCsvReader reader = new XmlCsvReader("c:\customers.csv"), doc.NameTable);
reader.FirstRowHasColumnNames = true;
reader.RootName = "customers";
reader.RowName = "customer";
doc.Load(reader);
Console.WriteLine(doc.OuterXml);
doc.Save("output.xml");
}
thanks
regards
shivakumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040413/90612c25/attachment.html>
More information about the Python-list
mailing list