Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> DOM::saveXML() - formatowanie, zamiana spacji na taby
Cysiaczek
post
Post #1





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Witam.

--edit
Przy ustawieniu $dom->formatOutput=true;
--

Metoda saveXML zwraca formatowany dokument XML.
Jednym z elementów tego formatowania są wcięcia
  1. <root>
  2.  <node/>
  3. </root>


Metoda ta używa spacji, a Ja chcę mieć tabulatory. Szukałem w manualu, lecz nie znalazłem. Chciałbym uniknąć regexpów. Czy coś przeoczyłem w dokumantacji?

Pozdrawiam.


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
sf
post
Post #2





Grupa: Zarejestrowani
Postów: 1 597
Pomógł: 30
Dołączył: 19.02.2003
Skąd: Tychy

Ostrzeżenie: (0%)
-----


Chyba str_replace() po co regexp od razu winksmiley.jpg


--------------------
Zapraszam na mój php blog, tworzenie stron.
Go to the top of the page
+Quote Post
sticker
post
Post #3





Grupa: Zarejestrowani
Postów: 611
Pomógł: 19
Dołączył: 28.02.2005
Skąd: Wrocław

Ostrzeżenie: (0%)
-----


a po co to wycinać przeca yml to nie jest smile.gif Ciekawy jestem uzasadnienia dlaczego taby a nie spacje, moze nie znam jakiegoś mega triku snitch.gif


--------------------
Go to the top of the page
+Quote Post
Cysiaczek
post
Post #4





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




@sticker - to fanaberia - nie lubię edytować pliku zawierającego spacje, a nie chciałem specjalnie z tego powodu obciążać skryptu generującego przez operacje na stringach.

Pomysł i tak upadł - jakoś się przyzwyczaję ;]

Pozdrawiam.


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 04:40