DOMDocument->save() DOMDocument->save() (no version information, might be only in CVS)
DOMDocument->save() --
Dumps the internal XML tree back into a file
Opis class
DOMDocument {
mixed
save ( string filename [, int options] )
}
Creates an XML document from the DOM representation. This function is usually
called after building a new dom document from scratch as in the example below.
Parametry
filename
The path to the saved XML document.
options
Additional Options. Currently only LIBXML_NOEMPTYTAG is supported.
Zwracane wartości
Returns the number of bytes written or FALSE if an error occurred.
Przykłady
Przykład 1. Saving a DOM tree into a file
<?php $doc = new DOMDocument ( '1.0' ); // we want a nice output $doc -> formatOutput = true ; $root = $doc -> createElement ( 'book' ); $root = $doc -> appendChild ( $root ); $title = $doc -> createElement ( 'title' ); $title = $root -> appendChild ( $title ); $text = $doc -> createTextNode ( 'This is the title' ); $text = $title -> appendChild ( $text ); echo 'Wrote: ' . $doc -> save ( "/tmp/test.xml" ) . ' bytes' ; // Wrote: 72 bytes ?>
Limo and Car services
Airport chicago limousine service 773-649-9630
- Limo and Car services
limo service chicago Airport 773-649-9630
-
odzyskiwanie danych Kraków
-
zdjęcia zwierząt
- Limo and Car services
chicago limos service 773-649-9630
- Optymalizacja i
pozycjonowanie poznań w internecie.
-
porady
-
opisy do gg
- Najlepsze
miłosne opisy gg do Twojego komunikatora
- Popularne
sklepy internetowe warszawa czekamy na ciebie.
-
pozycjonowanie strony
- tylko dobre
łożyska mają gwarancję
-
Programy
-
zdjęcia różne
-
zdjęcia szkolne
G:5,M:0,Y:23