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!