A large amount of XML comes in (about 1.5 GB), I need to transfer the information from them to the database table (in my case, SQL CE). The structure of the XML file is the following (the root tag, and there are many identical tags with attributes, the number of attributes is about 20), in essence, a two-dimensional table is
<Objects> <Object ID="" name="" level="" /> <Object ID="" name="" level="" /> With XML through XmlReader try this:
XmlReader r = XmlReader.Create("file:////" + PathToFile); while (r.Read()) { if ((r.Name == "Object") && (r.HasAttributes)) { } } But how can I connect it further with IDataREader and SqlCeBulkCopy I can not understand
The library is here.
UPDATE