Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XML Attribute in SQL Server 2005 Tabelle einspielen

Empfohlene Antworten

Hallo

Ich habe folgendes XML File:


<export>

  <bildungsplan name="Polizist / Polizistin I" uid="645">

    <modulgruppe name="Recht" uid="651" numbering="6" ordernr="6">

      <modul name="Tierschutz- und Tierseuchengesetz " uid="987" numbering="6.1" ordernr="1"></modul>

      <modul name="Alkoholgesetzgebung" uid="988" numbering="6.2" ordernr="2"></modul>

      <modul name="Einführung in das Recht" uid="989" numbering="6.3" ordernr="3"></modul>

      <modul name="Militärstrafrecht" uid="990" numbering="6.4" ordernr="4"></modul>

      <modul name="Rechtshilfe Konkordat" uid="991" numbering="6.5" ordernr="5"></modul>

      <modul name="Schusswaffengebrauch" uid="992" numbering="6.6" ordernr="6"></modul>

      <modul name="Strafrecht allgemeiner Teil" uid="993" numbering="6.7" ordernr="7"></modul>

      <modul name="Strafrecht besonderer Teil" uid="994" numbering="6.8" ordernr="8"></modul>

      <modul name="Zivilrecht" uid="995" numbering="6.9" ordernr="9"></modul>

      <modul name="Ausländerrecht" uid="996" numbering="6.10" ordernr="10"></modul>

    </modulgruppe>

    <modulgruppe name="Sport und Gesundheit" uid="652" numbering="7" ordernr="7">

      <modul name="Sport" uid="902" numbering="7.1" ordernr="1">

        <submodul name="Krafttraining" uid="903" numbering="7.1.1" ordernr="1"></submodul>

        <submodul name="Musclepump" uid="904" numbering="7.1.2" ordernr="2"></submodul>

        <submodul name="Ausdauertraining" uid="905" numbering="7.1.3" ordernr="3"></submodul>

        <submodul name="OL/Bike-OL" uid="906" numbering="7.1.4" ordernr="4"></submodul>

        <submodul name="Triathlon" uid="907" numbering="7.1.5" ordernr="5"></submodul>

        <submodul name="Outdoor" uid="908" numbering="7.1.6" ordernr="6"></submodul>

        <submodul name="Teamsport" uid="909" numbering="7.1.7" ordernr="7"></submodul>

        <submodul name="Leichtathletik" uid="910" numbering="7.1.8" ordernr="8"></submodul>

        <submodul name="Geräteturnen" uid="911" numbering="7.1.9" ordernr="9"></submodul>

        <submodul name="Beweglichkeit" uid="912" numbering="7.1.10" ordernr="10"></submodul>

        <submodul name="Trainingslehre" uid="913" numbering="7.1.11" ordernr="11"></submodul>

        <submodul name="Ernährungslehre" uid="914" numbering="7.1.12" ordernr="12"></submodul>

        <submodul name="Sportverletzungen" uid="915" numbering="7.1.13" ordernr="13"></submodul>

        <submodul name="Testreihe, Vergleich Schulstart/Schulende" uid="916" numbering="7.1.14" ordernr="14"></submodul>

      </modul>

      <modul name="Schwimmen" uid="917" numbering="7.2" ordernr="2">

        <submodul name="Einführung und Theorieprüfung" uid="918" numbering="7.2.1" ordernr="1"></submodul>

        <submodul name="Schwimmausbildung" uid="919" numbering="7.2.2" ordernr="2"></submodul>

        <submodul name="SLRG Ausbildung" uid="920" numbering="7.2.3" ordernr="3"></submodul>

      </modul>

    </modulgruppe>

    <modulgruppe name="Zur Verfügung Schulleitung" uid="653" numbering="8" ordernr="8"></modulgruppe>

  </bildungsplan>

  <bildungsplan name="Sicherheitsassistent" uid="692"></bildungsplan>

</export>

Und muss nun die Attribute der einzelnen Tags in folgende Tabelle einspielen:

tblswm65m.jpg

Es handelt sich um eine SQL2005 DB und das ganze sollte per SQL realisierbar sein, also kein Java o.ä.

Wie könnte ich das am besten lösen?

Danke für eure Hilfe!

wenn du das datenbankintern machen willst/musst, dann verwende XPath oder T-SQL. in der MSDN gibts dazu beispiele zuhauf.

s'Amstel

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.