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/XSLT: Tag im Tag als String

Empfohlene Antworten

Veröffentlicht

Hallo Community,

ich bin neu hier und das ist mein erster Forenbeitrag. Ich habe folgendes Problem:

Mir liegt eine XML-Datei vor, in welcher ein Tag in einem Tag vorkommt.

Beispiel:

	<cd>

		<title>Layla</title>

		<artist>Eric Clapton</artist>

		<country>USA</country>

		<company>Sony Music</company>

		<price>10.50</price>

		<year>

                  <testtag>Aus dem Jahr</testtag>

                1961</year>

	</cd>

Die Ausgabe für den Tag "<year>" ist: "Aus dem Jahr 1961" - was auch richtig ist.

Meine Frage ist es nun, ob es möglich ist, den kompletten Inhalt des "<year>"-Tags als String zu interpretieren?

Meine Ausgabe sollte quasi so aussehen: "<testtag>Aus dem Jahr</testtag>1961</<year>".

Danke schonmal im Voraus!

MfG

CoffeeCup

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.