Initial commit
This commit is contained in:
1
XML2SQL/XML2SQL.jmconfig
Normal file
1
XML2SQL/XML2SQL.jmconfig
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DontShowAgainInSolution>false</DontShowAgainInSolution></Configuration>
|
||||
22
XML2SQL/XML2SQL.sln
Normal file
22
XML2SQL/XML2SQL.sln
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.30501.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "XML2SQL", "XML2SQL\XML2SQL.vbproj", "{7CE163E4-365E-475F-8E95-B254575ABE81}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{7CE163E4-365E-475F-8E95-B254575ABE81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7CE163E4-365E-475F-8E95-B254575ABE81}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7CE163E4-365E-475F-8E95-B254575ABE81}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7CE163E4-365E-475F-8E95-B254575ABE81}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
BIN
XML2SQL/XML2SQL.v12.suo
Normal file
BIN
XML2SQL/XML2SQL.v12.suo
Normal file
Binary file not shown.
158
XML2SQL/XML2SQL/Form1.Designer.vb
generated
Normal file
158
XML2SQL/XML2SQL/Form1.Designer.vb
generated
Normal file
@@ -0,0 +1,158 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||
Partial Class Form1
|
||||
Inherits System.Windows.Forms.Form
|
||||
|
||||
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
Try
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
Finally
|
||||
MyBase.Dispose(disposing)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'Wird vom Windows Form-Designer benötigt.
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
|
||||
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
|
||||
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
Me.Button1 = New System.Windows.Forms.Button()
|
||||
Me.Button2 = New System.Windows.Forms.Button()
|
||||
Me.Button3 = New System.Windows.Forms.Button()
|
||||
Me.TextBox1 = New System.Windows.Forms.TextBox()
|
||||
Me.TextBox2 = New System.Windows.Forms.TextBox()
|
||||
Me.TextBox3 = New System.Windows.Forms.TextBox()
|
||||
Me.Button4 = New System.Windows.Forms.Button()
|
||||
Me.txtTableNo = New System.Windows.Forms.TextBox()
|
||||
Me.btnShowINGrid = New System.Windows.Forms.Button()
|
||||
Me.DataGridView1 = New System.Windows.Forms.DataGridView()
|
||||
CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'Button1
|
||||
'
|
||||
Me.Button1.Enabled = False
|
||||
Me.Button1.Location = New System.Drawing.Point(65, 48)
|
||||
Me.Button1.Name = "Button1"
|
||||
Me.Button1.Size = New System.Drawing.Size(75, 23)
|
||||
Me.Button1.TabIndex = 0
|
||||
Me.Button1.Text = "Convert"
|
||||
Me.Button1.UseVisualStyleBackColor = True
|
||||
'
|
||||
'Button2
|
||||
'
|
||||
Me.Button2.Location = New System.Drawing.Point(300, 48)
|
||||
Me.Button2.Name = "Button2"
|
||||
Me.Button2.Size = New System.Drawing.Size(173, 23)
|
||||
Me.Button2.TabIndex = 1
|
||||
Me.Button2.Text = "Check to load to dataset"
|
||||
Me.Button2.UseVisualStyleBackColor = True
|
||||
'
|
||||
'Button3
|
||||
'
|
||||
Me.Button3.Enabled = False
|
||||
Me.Button3.Location = New System.Drawing.Point(65, 77)
|
||||
Me.Button3.Name = "Button3"
|
||||
Me.Button3.Size = New System.Drawing.Size(75, 23)
|
||||
Me.Button3.TabIndex = 2
|
||||
Me.Button3.Text = "read and show lines from to (textbox1 and 3 Line-Numbers)"
|
||||
Me.Button3.UseVisualStyleBackColor = True
|
||||
'
|
||||
'TextBox1
|
||||
'
|
||||
Me.TextBox1.Enabled = False
|
||||
Me.TextBox1.Location = New System.Drawing.Point(66, 120)
|
||||
Me.TextBox1.Name = "TextBox1"
|
||||
Me.TextBox1.Size = New System.Drawing.Size(100, 20)
|
||||
Me.TextBox1.TabIndex = 3
|
||||
'
|
||||
'TextBox2
|
||||
'
|
||||
Me.TextBox2.Enabled = False
|
||||
Me.TextBox2.Location = New System.Drawing.Point(65, 146)
|
||||
Me.TextBox2.Multiline = True
|
||||
Me.TextBox2.Name = "TextBox2"
|
||||
Me.TextBox2.Size = New System.Drawing.Size(827, 122)
|
||||
Me.TextBox2.TabIndex = 4
|
||||
'
|
||||
'TextBox3
|
||||
'
|
||||
Me.TextBox3.Enabled = False
|
||||
Me.TextBox3.Location = New System.Drawing.Point(181, 120)
|
||||
Me.TextBox3.Name = "TextBox3"
|
||||
Me.TextBox3.Size = New System.Drawing.Size(100, 20)
|
||||
Me.TextBox3.TabIndex = 5
|
||||
'
|
||||
'Button4
|
||||
'
|
||||
Me.Button4.Location = New System.Drawing.Point(300, 77)
|
||||
Me.Button4.Name = "Button4"
|
||||
Me.Button4.Size = New System.Drawing.Size(173, 23)
|
||||
Me.Button4.TabIndex = 6
|
||||
Me.Button4.Text = "Load to SQL-Server"
|
||||
Me.Button4.UseVisualStyleBackColor = True
|
||||
'
|
||||
'txtTableNo
|
||||
'
|
||||
Me.txtTableNo.Location = New System.Drawing.Point(540, 48)
|
||||
Me.txtTableNo.Name = "txtTableNo"
|
||||
Me.txtTableNo.Size = New System.Drawing.Size(100, 20)
|
||||
Me.txtTableNo.TabIndex = 7
|
||||
'
|
||||
'btnShowINGrid
|
||||
'
|
||||
Me.btnShowINGrid.Location = New System.Drawing.Point(646, 48)
|
||||
Me.btnShowINGrid.Name = "btnShowINGrid"
|
||||
Me.btnShowINGrid.Size = New System.Drawing.Size(75, 23)
|
||||
Me.btnShowINGrid.TabIndex = 8
|
||||
Me.btnShowINGrid.Text = "Show in Grid"
|
||||
Me.btnShowINGrid.UseVisualStyleBackColor = True
|
||||
'
|
||||
'DataGridView1
|
||||
'
|
||||
Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
|
||||
Me.DataGridView1.Location = New System.Drawing.Point(65, 337)
|
||||
Me.DataGridView1.Name = "DataGridView1"
|
||||
Me.DataGridView1.Size = New System.Drawing.Size(827, 150)
|
||||
Me.DataGridView1.TabIndex = 9
|
||||
'
|
||||
'Form1
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.ClientSize = New System.Drawing.Size(918, 492)
|
||||
Me.Controls.Add(Me.DataGridView1)
|
||||
Me.Controls.Add(Me.btnShowINGrid)
|
||||
Me.Controls.Add(Me.txtTableNo)
|
||||
Me.Controls.Add(Me.Button4)
|
||||
Me.Controls.Add(Me.TextBox3)
|
||||
Me.Controls.Add(Me.TextBox2)
|
||||
Me.Controls.Add(Me.TextBox1)
|
||||
Me.Controls.Add(Me.Button3)
|
||||
Me.Controls.Add(Me.Button2)
|
||||
Me.Controls.Add(Me.Button1)
|
||||
Me.Name = "Form1"
|
||||
Me.Text = "Form1"
|
||||
CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
End Sub
|
||||
Friend WithEvents Button1 As System.Windows.Forms.Button
|
||||
Friend WithEvents Button2 As System.Windows.Forms.Button
|
||||
Friend WithEvents Button3 As System.Windows.Forms.Button
|
||||
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
|
||||
Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
|
||||
Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
|
||||
Friend WithEvents Button4 As System.Windows.Forms.Button
|
||||
Friend WithEvents txtTableNo As System.Windows.Forms.TextBox
|
||||
Friend WithEvents btnShowINGrid As System.Windows.Forms.Button
|
||||
Friend WithEvents DataGridView1 As System.Windows.Forms.DataGridView
|
||||
|
||||
End Class
|
||||
120
XML2SQL/XML2SQL/Form1.resx
Normal file
120
XML2SQL/XML2SQL/Form1.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
334
XML2SQL/XML2SQL/Form1.vb
Normal file
334
XML2SQL/XML2SQL/Form1.vb
Normal file
@@ -0,0 +1,334 @@
|
||||
|
||||
Imports System.Xml
|
||||
Imports System.IO
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Data.Sql
|
||||
|
||||
Public Class Form1
|
||||
|
||||
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
'Exit Sub
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
|
||||
|
||||
'Dim xmldoc As New XmlDocument()
|
||||
'xmldoc = LoadXMLDoc()
|
||||
'Dim nextnode As XmlNode
|
||||
'nextnode = xmldoc.FirstChild.NextSibling
|
||||
''Me.textBox1.Text = nextnode.OuterXml.ToString()
|
||||
'MsgBox("Konvert fertig")
|
||||
Dim i As Integer
|
||||
Dim ifile As String = "D:\EDK_Files\IL_Daten\20140630_Adressen_Dave\TKB010L_TGKB_EDOKA_ADDR_FULL_20140701090800.xml"
|
||||
'Dim ifile As String = "D:\EDK_Files\IL_Daten\20140630_Adressen_Dave\Dummy_XML.xml"
|
||||
Dim ofile As String = "D:\EDK_Files\IL_Daten\20140630_Adressen_Dave\Dummy_XML_Mod.xml"
|
||||
Dim tr As System.IO.TextReader = New StreamReader(ifile, System.Text.Encoding.GetEncoding(1252))
|
||||
Dim tw As System.IO.TextWriter = New StreamWriter(ofile)
|
||||
|
||||
Dim s As String
|
||||
s = tr.ReadLine
|
||||
tw.WriteLine(s)
|
||||
s = tr.ReadLine
|
||||
While Not s = Nothing
|
||||
parserow(s)
|
||||
tw.WriteLine(s)
|
||||
s = tr.ReadLine
|
||||
End While
|
||||
tw.Flush()
|
||||
tw.Close()
|
||||
|
||||
|
||||
End Sub
|
||||
Function parserow(ByRef s As String)
|
||||
Dim splitter() As String
|
||||
Dim splitte1() As String
|
||||
splitter = s.Split(">")
|
||||
Dim start As String = splitter(0) + ">"
|
||||
Dim ende As String = ""
|
||||
Dim middle As String = ""
|
||||
|
||||
If splitter.Length > 2 Then
|
||||
splitte1 = splitter(1).ToString.Split("</")
|
||||
If splitte1.Length = 2 Then
|
||||
ende = "<" + splitte1(1) + ende + ">"
|
||||
middle = splitte1(0)
|
||||
middle = middle.Replace("&", "&")
|
||||
middle = middle.Replace("'", "'")
|
||||
middle = middle.Replace("<", "<")
|
||||
middle = middle.Replace(">", ">")
|
||||
middle = middle.Replace("""", """)
|
||||
middle = middle.Replace("Ä", "Ä")
|
||||
middle = middle.Replace("Ö", "Ö")
|
||||
middle = middle.Replace("Ü", "Ü")
|
||||
middle = middle.Replace("ä", "ä")
|
||||
middle = middle.Replace("ö", "ö")
|
||||
middle = middle.Replace("ü", "ü")
|
||||
middle = middle.Replace("ß", "ß")
|
||||
Else
|
||||
|
||||
Dim ii As Integer = 0
|
||||
Dim ss As String = ""
|
||||
ss = splitter(1)
|
||||
For ii = 2 To splitter.Length - 1
|
||||
ss = ss + ">" + splitter(ii)
|
||||
Next
|
||||
splitte1 = ss.Split("</")
|
||||
If splitte1.Length = 2 Then
|
||||
ende = "<" + splitte1(1) + ende
|
||||
middle = splitte1(0)
|
||||
middle = middle.Replace("&", "&")
|
||||
middle = middle.Replace("'", "'")
|
||||
middle = middle.Replace("<", "<")
|
||||
middle = middle.Replace(">", ">")
|
||||
middle = middle.Replace("""", """)
|
||||
middle = middle.Replace("Ä", "Ä")
|
||||
middle = middle.Replace("Ö", "Ö")
|
||||
middle = middle.Replace("Ü", "Ü")
|
||||
middle = middle.Replace("ä", "ä")
|
||||
middle = middle.Replace("ö", "ö")
|
||||
middle = middle.Replace("ü", "ü")
|
||||
middle = middle.Replace("ß", "ß")
|
||||
End If
|
||||
|
||||
|
||||
End If
|
||||
|
||||
|
||||
End If
|
||||
s = start + middle + ende
|
||||
|
||||
Exit Function
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Dim i As Integer
|
||||
|
||||
While Not EOF(1)
|
||||
s = s.Replace("&", "&")
|
||||
s = s.Replace("'", "'")
|
||||
's = s.Replace("<", "<")
|
||||
's = s.Replace(">", ">")
|
||||
s = s.Replace("""", ""e;")
|
||||
s = s.Replace("Ä", "Ä")
|
||||
s = s.Replace("Ö", "Ö")
|
||||
s = s.Replace("Ü", "Ü")
|
||||
s = s.Replace("ä", "ä")
|
||||
s = s.Replace("ö", "ö")
|
||||
s = s.Replace("ü", "ü")
|
||||
s = s.Replace("ß", "ß")
|
||||
WriteLine(2, s)
|
||||
Input(1, s)
|
||||
i = i + 1
|
||||
|
||||
|
||||
End While
|
||||
FileClose(1)
|
||||
|
||||
FileClose(2)
|
||||
End Function
|
||||
|
||||
|
||||
Private filepath As String = "D:\EDK_Files\IL_Daten\20140630_Adressen_Dave\TKB020L_TGKB_EDOKA_ADDR_FULL_20140627153241.xml"
|
||||
Private Sub ReplaceSpecialChars(linenumber As Long)
|
||||
Dim strm As System.IO.StreamReader
|
||||
Dim strline As String
|
||||
Dim strreplace As String = " "
|
||||
Dim tempfile As String = "D:\EDK_Files\IL_Daten\20140630_Adressen_Dave\TKB020L_TGKB_EDOKA_ADDR_FULL_20140627153241_mod.xml"
|
||||
Try
|
||||
System.IO.File.Copy(filepath, tempfile, True)
|
||||
Catch ex As Exception
|
||||
MessageBox.Show(ex.Message)
|
||||
End Try
|
||||
|
||||
Dim strmwriter As New StreamWriter(filepath)
|
||||
strmwriter.AutoFlush = True
|
||||
strm = New StreamReader(tempfile)
|
||||
Dim i As Long = 0
|
||||
While i < linenumber - 1
|
||||
strline = strm.ReadLine()
|
||||
strmwriter.WriteLine(strline)
|
||||
i = i + 1
|
||||
End While
|
||||
|
||||
strline = strm.ReadLine()
|
||||
Dim lineposition As Int32
|
||||
|
||||
lineposition = strline.IndexOf("&")
|
||||
If lineposition > 0 Then
|
||||
strreplace = "&"
|
||||
Else
|
||||
lineposition = strline.IndexOf("<", 1)
|
||||
If lineposition > 0 Then
|
||||
strreplace = "<"
|
||||
|
||||
End If
|
||||
End If
|
||||
strline = (strline.Substring(0, lineposition - 1) & strreplace) + strline.Substring(lineposition + 1)
|
||||
strmwriter.WriteLine(strline)
|
||||
|
||||
strline = strm.ReadToEnd()
|
||||
strmwriter.WriteLine(strline)
|
||||
|
||||
strm.Close()
|
||||
strm = Nothing
|
||||
|
||||
strmwriter.Flush()
|
||||
strmwriter.Close()
|
||||
strmwriter = Nothing
|
||||
|
||||
End Sub
|
||||
|
||||
Public Function LoadXMLDoc() As XmlDocument
|
||||
Dim xdoc As XmlDocument
|
||||
Dim lnum As Long
|
||||
|
||||
Try
|
||||
xdoc = New XmlDocument()
|
||||
xdoc.Load(filepath)
|
||||
Catch ex As XmlException
|
||||
''MessageBox.Show(ex.Message)
|
||||
lnum = ex.LineNumber
|
||||
ReplaceSpecialChars(lnum)
|
||||
|
||||
xdoc = LoadXMLDoc()
|
||||
End Try
|
||||
Return (xdoc)
|
||||
End Function
|
||||
Dim ds As New DataSet
|
||||
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
|
||||
Try
|
||||
ds.ReadXml("D:\EDK_Files\IL_Daten\Demo_Partnerstamm.xml")
|
||||
'ds.ReadXml("D:\EDK_Files\IL_Daten\20140630_Adressen_Dave\TKB010L_TGKB_EDOKA_ADDR_FULL_20140701090800.xml")
|
||||
'ds.ReadXml("D:\EDK_Files\IL_Daten\20140630_Adressen_Dave\Dummy_XML_Mod.xml")
|
||||
MsgBox(ds.Tables.Count)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
|
||||
'Dim ifile As String = "D:\EDK_Files\IL_Daten\20140630_Adressen_Dave\Dummy_XML_Mod.xml"
|
||||
Dim ifile As String = "D:\EDK_Files\IL_Daten\Demo_Partnerstamm.xml"
|
||||
|
||||
Dim tr As System.IO.TextReader = New StreamReader(ifile)
|
||||
Me.TextBox2.Text = ""
|
||||
|
||||
Dim s As String
|
||||
Dim i As Integer = 1
|
||||
s = tr.ReadLine
|
||||
While Not s = Nothing
|
||||
i = i + 1
|
||||
If i >= Me.TextBox1.Text Then
|
||||
Me.TextBox2.Text = Me.TextBox2.Text + vbCrLf + s
|
||||
End If
|
||||
If i > Me.TextBox3.Text Then
|
||||
tr.Close()
|
||||
Exit Sub
|
||||
End If
|
||||
s = tr.ReadLine
|
||||
End While
|
||||
|
||||
tr.Close()
|
||||
End Sub
|
||||
|
||||
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
|
||||
'update_il_Partner_Adresse()
|
||||
update_il_Partner()
|
||||
Update_IL_Adressen()
|
||||
update_IL_Personenbeziehung()
|
||||
End Sub
|
||||
|
||||
Sub update_il_Partner_Adresse()
|
||||
|
||||
Dim cs As String = "data source=shu00;initial catalog=edoka;integrated security=SSPI;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29"
|
||||
Dim cn As New SqlConnection(cs)
|
||||
Dim ds1 As New DataTable
|
||||
Dim da As New SqlDataAdapter("Select * from __IL_Partner_Adresse", cn)
|
||||
Dim cmdBuilder As SqlCommandBuilder
|
||||
cmdBuilder = New SqlCommandBuilder(da)
|
||||
da.Fill(ds1)
|
||||
For i As Integer = 0 To ds.Tables(3).Rows.Count - 1
|
||||
Dim dr As DataRow = ds1.NewRow
|
||||
For ii As Integer = 0 To ds1.Columns.Count - 1
|
||||
dr.Item(ii) = ds.Tables(3).Rows(i).Item(ii)
|
||||
Next
|
||||
ds1.Rows.Add(dr)
|
||||
Next
|
||||
da.Update(ds1)
|
||||
End Sub
|
||||
|
||||
Sub update_il_Partner()
|
||||
|
||||
Dim cs As String = "data source=shu00;initial catalog=edoka;integrated security=SSPI;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29"
|
||||
Dim cn As New SqlConnection(cs)
|
||||
Dim ds1 As New DataTable
|
||||
Dim da As New SqlDataAdapter("Select * from __IL_Partner", cn)
|
||||
Dim cmdBuilder As SqlCommandBuilder
|
||||
cmdBuilder = New SqlCommandBuilder(da)
|
||||
da.Fill(ds1)
|
||||
For i As Integer = 0 To ds.Tables(3).Rows.Count - 1
|
||||
Dim dr As DataRow = ds1.NewRow
|
||||
For ii As Integer = 0 To ds1.Columns.Count - 1
|
||||
dr.Item(ii) = ds.Tables(3).Rows(i).Item(ii)
|
||||
Next
|
||||
ds1.Rows.Add(dr)
|
||||
Next
|
||||
da.Update(ds1)
|
||||
End Sub
|
||||
|
||||
Sub update_il_Adressen()
|
||||
|
||||
Dim cs As String = "data source=shu00;initial catalog=edoka;integrated security=SSPI;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29"
|
||||
Dim cn As New SqlConnection(cs)
|
||||
Dim ds1 As New DataTable
|
||||
Dim da As New SqlDataAdapter("Select * from __IL_Adressen", cn)
|
||||
Dim cmdBuilder As SqlCommandBuilder
|
||||
cmdBuilder = New SqlCommandBuilder(da)
|
||||
da.Fill(ds1)
|
||||
For i As Integer = 0 To ds.Tables(5).Rows.Count - 1
|
||||
Dim dr As DataRow = ds1.NewRow
|
||||
For ii As Integer = 0 To ds1.Columns.Count - 1
|
||||
dr.Item(ii) = ds.Tables(5).Rows(i).Item(ii)
|
||||
Next
|
||||
ds1.Rows.Add(dr)
|
||||
Next
|
||||
da.Update(ds1)
|
||||
End Sub
|
||||
Sub update_IL_Personenbeziehung()
|
||||
|
||||
Dim cs As String = "data source=shu00;initial catalog=edoka;integrated security=SSPI;persist security info=false;workstation id=;packet size=4096;user id=sa;password=*shu29"
|
||||
Dim cn As New SqlConnection(cs)
|
||||
Dim ds1 As New DataTable
|
||||
Dim da As New SqlDataAdapter("Select * from __IL_Personenbeziehung", cn)
|
||||
Dim cmdBuilder As SqlCommandBuilder
|
||||
cmdBuilder = New SqlCommandBuilder(da)
|
||||
da.Fill(ds1)
|
||||
For i As Integer = 0 To ds.Tables(7).Rows.Count - 1
|
||||
Dim dr As DataRow = ds1.NewRow
|
||||
For ii As Integer = 0 To ds1.Columns.Count - 1
|
||||
dr.Item(ii) = ds.Tables(7).Rows(i).Item(ii)
|
||||
Next
|
||||
ds1.Rows.Add(dr)
|
||||
Next
|
||||
da.Update(ds1)
|
||||
End Sub
|
||||
|
||||
Private Sub btnShowINGrid_Click(sender As Object, e As EventArgs) Handles btnShowINGrid.Click
|
||||
Me.DataGridView1.DataSource = Nothing
|
||||
Dim i As Integer = Me.txtTableNo.Text
|
||||
Me.DataGridView1.DataSource = ds.Tables(i)
|
||||
MsgBox(ds.Tables(i).Rows.Count)
|
||||
End Sub
|
||||
End Class
|
||||
103
XML2SQL/XML2SQL/Form2.Designer.vb
generated
Normal file
103
XML2SQL/XML2SQL/Form2.Designer.vb
generated
Normal file
@@ -0,0 +1,103 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
|
||||
Partial Class Form2
|
||||
Inherits System.Windows.Forms.Form
|
||||
|
||||
'Das Formular überschreibt den Löschvorgang, um die Komponentenliste zu bereinigen.
|
||||
<System.Diagnostics.DebuggerNonUserCode()> _
|
||||
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
|
||||
Try
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
Finally
|
||||
MyBase.Dispose(disposing)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'Wird vom Windows Form-Designer benötigt.
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'Hinweis: Die folgende Prozedur ist für den Windows Form-Designer erforderlich.
|
||||
'Das Bearbeiten ist mit dem Windows Form-Designer möglich.
|
||||
'Das Bearbeiten mit dem Code-Editor ist nicht möglich.
|
||||
<System.Diagnostics.DebuggerStepThrough()> _
|
||||
Private Sub InitializeComponent()
|
||||
Me.Button1 = New System.Windows.Forms.Button()
|
||||
Me.TextBox1 = New System.Windows.Forms.TextBox()
|
||||
Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog()
|
||||
Me.Button2 = New System.Windows.Forms.Button()
|
||||
Me.DataGridView1 = New System.Windows.Forms.DataGridView()
|
||||
Me.Button3 = New System.Windows.Forms.Button()
|
||||
CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()
|
||||
Me.SuspendLayout()
|
||||
'
|
||||
'Button1
|
||||
'
|
||||
Me.Button1.Location = New System.Drawing.Point(13, 13)
|
||||
Me.Button1.Name = "Button1"
|
||||
Me.Button1.Size = New System.Drawing.Size(75, 23)
|
||||
Me.Button1.TabIndex = 0
|
||||
Me.Button1.Text = "File"
|
||||
Me.Button1.UseVisualStyleBackColor = True
|
||||
'
|
||||
'TextBox1
|
||||
'
|
||||
Me.TextBox1.Location = New System.Drawing.Point(114, 13)
|
||||
Me.TextBox1.Name = "TextBox1"
|
||||
Me.TextBox1.Size = New System.Drawing.Size(440, 20)
|
||||
Me.TextBox1.TabIndex = 1
|
||||
'
|
||||
'OpenFileDialog1
|
||||
'
|
||||
Me.OpenFileDialog1.FileName = "OpenFileDialog1"
|
||||
'
|
||||
'Button2
|
||||
'
|
||||
Me.Button2.Location = New System.Drawing.Point(12, 42)
|
||||
Me.Button2.Name = "Button2"
|
||||
Me.Button2.Size = New System.Drawing.Size(75, 23)
|
||||
Me.Button2.TabIndex = 2
|
||||
Me.Button2.Text = "Load"
|
||||
Me.Button2.UseVisualStyleBackColor = True
|
||||
'
|
||||
'DataGridView1
|
||||
'
|
||||
Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
|
||||
Me.DataGridView1.Location = New System.Drawing.Point(114, 42)
|
||||
Me.DataGridView1.Name = "DataGridView1"
|
||||
Me.DataGridView1.Size = New System.Drawing.Size(916, 77)
|
||||
Me.DataGridView1.TabIndex = 3
|
||||
'
|
||||
'Button3
|
||||
'
|
||||
Me.Button3.Location = New System.Drawing.Point(12, 137)
|
||||
Me.Button3.Name = "Button3"
|
||||
Me.Button3.Size = New System.Drawing.Size(75, 23)
|
||||
Me.Button3.TabIndex = 4
|
||||
Me.Button3.Text = "Create Table"
|
||||
Me.Button3.UseVisualStyleBackColor = True
|
||||
'
|
||||
'Form2
|
||||
'
|
||||
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.ClientSize = New System.Drawing.Size(1064, 409)
|
||||
Me.Controls.Add(Me.Button3)
|
||||
Me.Controls.Add(Me.DataGridView1)
|
||||
Me.Controls.Add(Me.Button2)
|
||||
Me.Controls.Add(Me.TextBox1)
|
||||
Me.Controls.Add(Me.Button1)
|
||||
Me.Name = "Form2"
|
||||
Me.Text = "Form2"
|
||||
CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()
|
||||
Me.ResumeLayout(False)
|
||||
Me.PerformLayout()
|
||||
|
||||
End Sub
|
||||
Friend WithEvents Button1 As System.Windows.Forms.Button
|
||||
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
|
||||
Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
|
||||
Friend WithEvents Button2 As System.Windows.Forms.Button
|
||||
Friend WithEvents DataGridView1 As System.Windows.Forms.DataGridView
|
||||
Friend WithEvents Button3 As System.Windows.Forms.Button
|
||||
End Class
|
||||
123
XML2SQL/XML2SQL/Form2.resx
Normal file
123
XML2SQL/XML2SQL/Form2.resx
Normal file
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="OpenFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
44
XML2SQL/XML2SQL/Form2.vb
Normal file
44
XML2SQL/XML2SQL/Form2.vb
Normal file
@@ -0,0 +1,44 @@
|
||||
Imports System.Data.SqlClient
|
||||
Imports System.Data.SqlDbType
|
||||
|
||||
Public Class Form2
|
||||
|
||||
Dim tbl As New DataTable
|
||||
Dim ds As New DataSet
|
||||
|
||||
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
|
||||
OpenFileDialog1.ShowDialog()
|
||||
Me.TextBox1.Text = OpenFileDialog1.FileName
|
||||
End Sub
|
||||
|
||||
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
|
||||
ds.Tables.Clear()
|
||||
ds.ReadXml(Me.TextBox1.Text)
|
||||
Me.DataGridView1.DataSource = ds.Tables(0)
|
||||
End Sub
|
||||
|
||||
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
|
||||
Dim con As New SqlConnection("Data Source=shu00;uid=sa;pwd=*shu29;database=db2")
|
||||
con.Open()
|
||||
Dim sql As String = "Create Table delzvindex ("
|
||||
For Each column As DataColumn In ds.Tables(0).Columns
|
||||
sql += "[" + column.ColumnName + "] " + "nvarchar(255)" + ","
|
||||
Next
|
||||
sql = sql.TrimEnd(New Char() {","c}) + ")"
|
||||
Dim cmd As New SqlCommand(sql, con)
|
||||
Dim da As New SqlDataAdapter(cmd)
|
||||
cmd.ExecuteNonQuery()
|
||||
Using adapter = New SqlDataAdapter("SELECT * FROM delzvindex", con)
|
||||
Using builder = New SqlCommandBuilder(adapter)
|
||||
adapter.InsertCommand = builder.GetInsertCommand()
|
||||
adapter.Update(ds.Tables(0))
|
||||
End Using
|
||||
End Using
|
||||
con.Close()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
|
||||
End Sub
|
||||
End Class
|
||||
38
XML2SQL/XML2SQL/My Project/Application.Designer.vb
generated
Normal file
38
XML2SQL/XML2SQL/My Project/Application.Designer.vb
generated
Normal file
@@ -0,0 +1,38 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' Dieser Code wurde von einem Tool generiert.
|
||||
' Laufzeitversion:4.0.30319.34209
|
||||
'
|
||||
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||
' der Code erneut generiert wird.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
'HINWEIS: Diese Datei wird automatisch generiert. Ändern Sie sie nicht direkt. Zum Ändern
|
||||
' oder bei in dieser Datei auftretenden Buildfehlern wechseln Sie zum Projekt-Designer.
|
||||
' (Wechseln Sie dazu zu den Projekteigenschaften, oder doppelklicken Sie auf den Knoten "Mein Projekt" im
|
||||
' Projektmappen-Explorer). Nehmen Sie auf der Registerkarte "Anwendung" entsprechende Änderungen vor.
|
||||
'
|
||||
Partial Friend Class MyApplication
|
||||
|
||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||
Public Sub New()
|
||||
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
|
||||
Me.IsSingleInstance = false
|
||||
Me.EnableVisualStyles = true
|
||||
Me.SaveMySettingsOnExit = true
|
||||
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
|
||||
End Sub
|
||||
|
||||
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
|
||||
Protected Overrides Sub OnCreateMainForm()
|
||||
Me.MainForm = Global.XML2SQL.Form2
|
||||
End Sub
|
||||
End Class
|
||||
End Namespace
|
||||
10
XML2SQL/XML2SQL/My Project/Application.myapp
Normal file
10
XML2SQL/XML2SQL/My Project/Application.myapp
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<MySubMain>true</MySubMain>
|
||||
<MainForm>Form2</MainForm>
|
||||
<SingleInstance>false</SingleInstance>
|
||||
<ShutdownMode>0</ShutdownMode>
|
||||
<EnableVisualStyles>true</EnableVisualStyles>
|
||||
<AuthenticationMode>0</AuthenticationMode>
|
||||
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>
|
||||
</MyApplicationData>
|
||||
35
XML2SQL/XML2SQL/My Project/AssemblyInfo.vb
Normal file
35
XML2SQL/XML2SQL/My Project/AssemblyInfo.vb
Normal file
@@ -0,0 +1,35 @@
|
||||
Imports System
|
||||
Imports System.Reflection
|
||||
Imports System.Runtime.InteropServices
|
||||
|
||||
' Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||
' Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
' die mit einer Assembly verknüpft sind.
|
||||
|
||||
' Die Werte der Assemblyattribute überprüfen
|
||||
|
||||
<Assembly: AssemblyTitle("XML2SQL")>
|
||||
<Assembly: AssemblyDescription("")>
|
||||
<Assembly: AssemblyCompany("")>
|
||||
<Assembly: AssemblyProduct("XML2SQL")>
|
||||
<Assembly: AssemblyCopyright("Copyright © 2014")>
|
||||
<Assembly: AssemblyTrademark("")>
|
||||
|
||||
<Assembly: ComVisible(False)>
|
||||
|
||||
'Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||
<Assembly: Guid("bd90f889-5fd4-4d9c-b71d-7cc03d86ed82")>
|
||||
|
||||
' Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
'
|
||||
' Hauptversion
|
||||
' Nebenversion
|
||||
' Buildnummer
|
||||
' Revision
|
||||
'
|
||||
' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||
' übernehmen, indem Sie "*" eingeben:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("1.0.0.0")>
|
||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||
62
XML2SQL/XML2SQL/My Project/Resources.Designer.vb
generated
Normal file
62
XML2SQL/XML2SQL/My Project/Resources.Designer.vb
generated
Normal file
@@ -0,0 +1,62 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:4.0.30319.34014
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My.Resources
|
||||
|
||||
'This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
'class via a tool like ResGen or Visual Studio.
|
||||
'To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
'with the /str option, or rebuild your VS project.
|
||||
'''<summary>
|
||||
''' A strongly-typed resource class, for looking up localized strings, etc.
|
||||
'''</summary>
|
||||
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _
|
||||
Friend Module Resources
|
||||
|
||||
Private resourceMan As Global.System.Resources.ResourceManager
|
||||
|
||||
Private resourceCulture As Global.System.Globalization.CultureInfo
|
||||
|
||||
'''<summary>
|
||||
''' Returns the cached ResourceManager instance used by this class.
|
||||
'''</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
|
||||
Get
|
||||
If Object.ReferenceEquals(resourceMan, Nothing) Then
|
||||
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("XML2SQL.Resources", GetType(Resources).Assembly)
|
||||
resourceMan = temp
|
||||
End If
|
||||
Return resourceMan
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Overrides the current thread's CurrentUICulture property for all
|
||||
''' resource lookups using this strongly typed resource class.
|
||||
'''</summary>
|
||||
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Friend Property Culture() As Global.System.Globalization.CultureInfo
|
||||
Get
|
||||
Return resourceCulture
|
||||
End Get
|
||||
Set(ByVal value As Global.System.Globalization.CultureInfo)
|
||||
resourceCulture = value
|
||||
End Set
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
117
XML2SQL/XML2SQL/My Project/Resources.resx
Normal file
117
XML2SQL/XML2SQL/My Project/Resources.resx
Normal file
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
73
XML2SQL/XML2SQL/My Project/Settings.Designer.vb
generated
Normal file
73
XML2SQL/XML2SQL/My Project/Settings.Designer.vb
generated
Normal file
@@ -0,0 +1,73 @@
|
||||
'------------------------------------------------------------------------------
|
||||
' <auto-generated>
|
||||
' This code was generated by a tool.
|
||||
' Runtime Version:4.0.30319.34014
|
||||
'
|
||||
' Changes to this file may cause incorrect behavior and will be lost if
|
||||
' the code is regenerated.
|
||||
' </auto-generated>
|
||||
'------------------------------------------------------------------------------
|
||||
|
||||
Option Strict On
|
||||
Option Explicit On
|
||||
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _
|
||||
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0"), _
|
||||
Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Partial Friend NotInheritable Class MySettings
|
||||
Inherits Global.System.Configuration.ApplicationSettingsBase
|
||||
|
||||
Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
|
||||
|
||||
#Region "My.Settings Auto-Save Functionality"
|
||||
#If _MyType = "WindowsForms" Then
|
||||
Private Shared addedHandler As Boolean
|
||||
|
||||
Private Shared addedHandlerLockObject As New Object
|
||||
|
||||
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
|
||||
Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
|
||||
If My.Application.SaveMySettingsOnExit Then
|
||||
My.Settings.Save()
|
||||
End If
|
||||
End Sub
|
||||
#End If
|
||||
#End Region
|
||||
|
||||
Public Shared ReadOnly Property [Default]() As MySettings
|
||||
Get
|
||||
|
||||
#If _MyType = "WindowsForms" Then
|
||||
If Not addedHandler Then
|
||||
SyncLock addedHandlerLockObject
|
||||
If Not addedHandler Then
|
||||
AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
|
||||
addedHandler = True
|
||||
End If
|
||||
End SyncLock
|
||||
End If
|
||||
#End If
|
||||
Return defaultInstance
|
||||
End Get
|
||||
End Property
|
||||
End Class
|
||||
End Namespace
|
||||
|
||||
Namespace My
|
||||
|
||||
<Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _
|
||||
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
|
||||
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
|
||||
Friend Module MySettingsProperty
|
||||
|
||||
<Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _
|
||||
Friend ReadOnly Property Settings() As Global.XML2SQL.My.MySettings
|
||||
Get
|
||||
Return Global.XML2SQL.My.MySettings.Default
|
||||
End Get
|
||||
End Property
|
||||
End Module
|
||||
End Namespace
|
||||
7
XML2SQL/XML2SQL/My Project/Settings.settings
Normal file
7
XML2SQL/XML2SQL/My Project/Settings.settings
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
139
XML2SQL/XML2SQL/XML2SQL.vbproj
Normal file
139
XML2SQL/XML2SQL/XML2SQL.vbproj
Normal file
@@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{7CE163E4-365E-475F-8E95-B254575ABE81}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<StartupObject>XML2SQL.My.MyApplication</StartupObject>
|
||||
<RootNamespace>XML2SQL</RootNamespace>
|
||||
<AssemblyName>XML2SQL</AssemblyName>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<MyType>WindowsForms</MyType>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<DefineDebug>true</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DocumentationFile>XML2SQL.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<DefineDebug>false</DefineDebug>
|
||||
<DefineTrace>true</DefineTrace>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DocumentationFile>XML2SQL.xml</DocumentationFile>
|
||||
<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionExplicit>On</OptionExplicit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionCompare>Binary</OptionCompare>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionStrict>Off</OptionStrict>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<OptionInfer>On</OptionInfer>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Import Include="Microsoft.VisualBasic" />
|
||||
<Import Include="System" />
|
||||
<Import Include="System.Collections" />
|
||||
<Import Include="System.Collections.Generic" />
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Drawing" />
|
||||
<Import Include="System.Diagnostics" />
|
||||
<Import Include="System.Windows.Forms" />
|
||||
<Import Include="System.Linq" />
|
||||
<Import Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.vb">
|
||||
<DependentUpon>Form1.vb</DependentUpon>
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form2.Designer.vb">
|
||||
<DependentUpon>Form2.vb</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Form2.vb">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||
<Compile Include="My Project\Application.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Application.myapp</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Resources.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="My Project\Settings.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Form2.resx">
|
||||
<DependentUpon>Form2.vb</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="My Project\Resources.resx">
|
||||
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
|
||||
<CustomToolNamespace>My.Resources</CustomToolNamespace>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="My Project\Application.myapp">
|
||||
<Generator>MyApplicationCodeGenerator</Generator>
|
||||
<LastGenOutput>Application.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Include="My Project\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<CustomToolNamespace>My</CustomToolNamespace>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="XMLFile1.xml">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
48
XML2SQL/XML2SQL/XMLFile1.xml
Normal file
48
XML2SQL/XML2SQL/XMLFile1.xml
Normal file
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<root>
|
||||
<result>
|
||||
<resultName>Adresse Stammdaten</resultName>
|
||||
<resultHeader>
|
||||
<mandant>tgkb</mandant>
|
||||
<userId>avaloq</userId>
|
||||
<sprache>D</sprache>
|
||||
</resultHeader>
|
||||
<resultContent>
|
||||
<Adresse>
|
||||
<status>2</status>
|
||||
<objektNr>14504710001</objektNr>
|
||||
<zeile1>Frau</zeile1>
|
||||
<zeile2>Barbara Ortmann</zeile2>
|
||||
<zeile3>Hinterlindenweg 55</zeile3>
|
||||
<zeile4>3013 Bern</zeile4>
|
||||
<zeile5/>
|
||||
<zeile6/>
|
||||
<zeile7/>
|
||||
<titelVorgestellt/>
|
||||
<adressatZeile1>Frau</adressatZeile1>
|
||||
<adressatZeile2>Barbara Ortmann</adressatZeile2>
|
||||
<adressatZeile3/>
|
||||
<vorname1>Barbara</vorname1>
|
||||
<vorname2/>
|
||||
<vorname3/>
|
||||
<vorname4/>
|
||||
<nachname>Ortmann</nachname>
|
||||
<namenZusatz/>
|
||||
<firma/>
|
||||
<ortZusatz/>
|
||||
<weiler/>
|
||||
<strasse>Hinterlindenweg 55</strasse>
|
||||
<hausNr/>
|
||||
<briefanrede1/>
|
||||
<briefanrede2Zeile1>Sehr geehrte Damen und Herren</briefanrede2Zeile1>
|
||||
<briefanrede2Zeile2/>
|
||||
<plz>3013</plz>
|
||||
<ort>Bern</ort>
|
||||
<laenderCode>CH</laenderCode>
|
||||
<banklagernd>N</banklagernd>
|
||||
<ablaufDatumAdresse/>
|
||||
<versandart>std</versandart>
|
||||
</Adresse>
|
||||
</resultContent>
|
||||
</result>
|
||||
</root>
|
||||
BIN
XML2SQL/XML2SQL/bin/Debug/XML2SQL.exe
Normal file
BIN
XML2SQL/XML2SQL/bin/Debug/XML2SQL.exe
Normal file
Binary file not shown.
BIN
XML2SQL/XML2SQL/bin/Debug/XML2SQL.pdb
Normal file
BIN
XML2SQL/XML2SQL/bin/Debug/XML2SQL.pdb
Normal file
Binary file not shown.
BIN
XML2SQL/XML2SQL/bin/Debug/XML2SQL.vshost.exe
Normal file
BIN
XML2SQL/XML2SQL/bin/Debug/XML2SQL.vshost.exe
Normal file
Binary file not shown.
11
XML2SQL/XML2SQL/bin/Debug/XML2SQL.vshost.exe.manifest
Normal file
11
XML2SQL/XML2SQL/bin/Debug/XML2SQL.vshost.exe.manifest
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
||||
24
XML2SQL/XML2SQL/bin/Debug/XML2SQL.xml
Normal file
24
XML2SQL/XML2SQL/bin/Debug/XML2SQL.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
XML2SQL
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="P:XML2SQL.My.Resources.Resources.ResourceManager">
|
||||
<summary>
|
||||
Returns the cached ResourceManager instance used by this class.
|
||||
</summary>
|
||||
</member><member name="P:XML2SQL.My.Resources.Resources.Culture">
|
||||
<summary>
|
||||
Overrides the current thread's CurrentUICulture property for all
|
||||
resource lookups using this strongly typed resource class.
|
||||
</summary>
|
||||
</member><member name="T:XML2SQL.My.Resources.Resources">
|
||||
<summary>
|
||||
A strongly-typed resource class, for looking up localized strings, etc.
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.Form1.resources
Normal file
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.Form1.resources
Normal file
Binary file not shown.
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.Form2.resources
Normal file
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.Form2.resources
Normal file
Binary file not shown.
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.Resources.resources
Normal file
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.Resources.resources
Normal file
Binary file not shown.
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.exe
Normal file
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.exe
Normal file
Binary file not shown.
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.pdb
Normal file
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
E:\Software-Projekte\EDOKA\tools\XML2SQL\XML2SQL\bin\Debug\XML2SQL.exe
|
||||
E:\Software-Projekte\EDOKA\tools\XML2SQL\XML2SQL\bin\Debug\XML2SQL.pdb
|
||||
E:\Software-Projekte\EDOKA\tools\XML2SQL\XML2SQL\bin\Debug\XML2SQL.xml
|
||||
E:\Software-Projekte\EDOKA\tools\XML2SQL\XML2SQL\obj\Debug\XML2SQL.Form1.resources
|
||||
E:\Software-Projekte\EDOKA\tools\XML2SQL\XML2SQL\obj\Debug\XML2SQL.Resources.resources
|
||||
E:\Software-Projekte\EDOKA\tools\XML2SQL\XML2SQL\obj\Debug\XML2SQL.vbproj.GenerateResource.Cache
|
||||
E:\Software-Projekte\EDOKA\tools\XML2SQL\XML2SQL\obj\Debug\XML2SQL.exe
|
||||
E:\Software-Projekte\EDOKA\tools\XML2SQL\XML2SQL\obj\Debug\XML2SQL.xml
|
||||
E:\Software-Projekte\EDOKA\tools\XML2SQL\XML2SQL\obj\Debug\XML2SQL.pdb
|
||||
E:\Software-Projekte\EDOKA\tools\XML2SQL\XML2SQL\obj\Debug\XML2SQL.Form2.resources
|
||||
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.vbproj.GenerateResource.Cache
Normal file
BIN
XML2SQL/XML2SQL/obj/Debug/XML2SQL.vbproj.GenerateResource.Cache
Normal file
Binary file not shown.
24
XML2SQL/XML2SQL/obj/Debug/XML2SQL.xml
Normal file
24
XML2SQL/XML2SQL/obj/Debug/XML2SQL.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>
|
||||
XML2SQL
|
||||
</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="P:XML2SQL.My.Resources.Resources.ResourceManager">
|
||||
<summary>
|
||||
Returns the cached ResourceManager instance used by this class.
|
||||
</summary>
|
||||
</member><member name="P:XML2SQL.My.Resources.Resources.Culture">
|
||||
<summary>
|
||||
Overrides the current thread's CurrentUICulture property for all
|
||||
resource lookups using this strongly typed resource class.
|
||||
</summary>
|
||||
</member><member name="T:XML2SQL.My.Resources.Resources">
|
||||
<summary>
|
||||
A strongly-typed resource class, for looking up localized strings, etc.
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
Reference in New Issue
Block a user