Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4563 | minor | always | 05-17-11 10:39 | 05-19-11 10:57 | |
|
|||||
Reporter: | alex | Platform: | |||
Assigned To: | domdorn | OS: | |||
Priority: | normal | OS Version: | |||
Status: | resolved | Product Version: | 4.0.18 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0004563: Quercus DOMDocument->saveXML($node) does not work | ||||
Description: |
<?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 "Saving all the document:\n"; echo $doc->saveXML() . "\n"; echo "Saving only the title part:\n"; echo $doc->saveXML($title); ?> |
||||
Steps To Reproduce: | |||||
Additional Information: |
expected output Saving all the document: <?xml version="1.0"?> <book> <title>This is the title</title> </book> Saving only the title part: <title>This is the title</title> |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|