ich grübl jetzt schon längere Zeit daran die DOM XML Funktion zum laufen zu bringen, aber irgendiwe klappt das nicht.
Ich hab in allen php.ini 's auf meinem Rechner die Extension freigeschaltet.
Und den Indianer hab ich auch dann neu gestartet, aber das Ergbniss war gleich null, hat sich nix getan.
Wenn ich dieses Beispiel Coding ausführen möchte:
- Code: Select all
<?php
$document = new DOMDocument('1.0', 'iso-8859-1');
$document->formatOutput = TRUE;
$books = $document->appendChild( $document->createElement('books'));
$psmp5 = $books->appendChild( $document->createElement('book'));
$psmp5->setAttribute('lang', 'de');
$psmp5->appendChild( $document->createElement( 'author', 'Sebastian Bergmann' ));
$psmp5->appendChild( $document->createElement( 'title', 'Professionelle Softwareentwicklung mit PHP 5' ));
$psmp5->appendChild( $document->createElement( 'isbn', '3-89864-229-1' ));
print $document->saveXML();
?>
kommt nur dieser Fehler:
- Code: Select all
Warning: domdocument::domdocument() expects parameter 2 to be long, string given in C:\Program Files\xampp\htdocs\PHP\testlab\xml_test.php on line 2
Fatal error: Call to undefined method domdocument::appendChild() in C:\Program Files\xampp\htdocs\PHP\testlab\xml_test.php on line 4
Ja wie schon gesagt ich bräucht diese Erweiterung dringen, aber ich bekomms nicht hin sie zum laufen zu bringen.
Von daher hoffe ich ihr könnt mir helfen!
Viele Grüße,
la-finest