![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 18.04.2005 Ostrzeżenie: (0%) ![]() ![]() |
witam forumowiczów
czy jest jakas funkcja zracająca ilosc węzłów w pliku xml np :
i teraz aby wyciągnąć ilość wystąpienia <wezel /> ( nie moge znaleźc takiej funkcji (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) ) moze smiesznie porównam ale we flashu robie poprostu var ile = root.firstChild.childNodes.length i mam ilosc (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) , gdzie root jest obiektem XML pozdrawiam ljmedia |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 179 Pomógł: 0 Dołączył: 9.11.2004 Ostrzeżenie: (0%) ![]() ![]() |
Tutaj powinno też takie cuś działać:
Kod var xml = document.implementation.createDocument("", "", null); xml.load('jakistamplik.xml'); var ile = xml.documentElement.childNodes.length; // ilosc (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 18.04.2005 Ostrzeżenie: (0%) ![]() ![]() |
hmm nie bardzo mi to działa (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) a php-ie nie jestem zbyt biegły.
ljmedia |
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 179 Pomógł: 0 Dołączył: 9.11.2004 Ostrzeżenie: (0%) ![]() ![]() |
Heh, sorry :] ja myślałem, że chodzi ci o JavaScript (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) w php będzie podobnie:
Jakby co: http://www.php.net/manual/en/ref.dom.php -> tam wszystko jest (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Ten post edytował dasko 19.04.2005, 13:31:07 |
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 18.04.2005 Ostrzeżenie: (0%) ![]() ![]() |
wielkie dzieki (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Pozdrawiam ljmedia |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 13:57 |