WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   XML XPath Problem (http://www.wcm.at/forum/showthread.php?t=176669)

hewlett 24.10.2005 13:26

XML XPath Problem
 
Hi Leute,

ich muss mittels XPath aus einem XML Dokument die Anzahl der Attribute herausfinden, aber ich schaffs einfach nicht.
Der Code das ich alle Attribute bekomme ist ja:
Code:

doc("test.xml")//@*
nur das er mir einfach die Anzahl ausgibt schaff ich nicht. Wird wohl was mit count() sein, komm jedoch nicht dahinter!

Vielleicht kann mir wer von euch helfen!

Biri 24.10.2005 14:45

hi,

hast dir eh schon selbst die antowrt gegeben. ;)

count(//@*)

fg
-hannes

hewlett 25.10.2005 09:08

Zitat:

Original geschrieben von Biri
hi,

hast dir eh schon selbst die antowrt gegeben. ;)

count(//@*)

fg
-hannes

mittlerweile bin ich eh schon dahinter gekommen, aber trotzdem danke!


Alle Zeitangaben in WEZ +2. Es ist jetzt 20:16 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag