Anonymous | Login | Signup for a new account | 11-22-2024 04:31 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0004563 | [Quercus] | minor | always | 05-17-11 10:39 | 05-19-11 10:57 | ||||
Reporter | alex | View Status | public | ||||||
Assigned To | domdorn | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | resolved | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | Product Version | 4.0.18 | |||||
Product Build | |||||||||
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> |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed. 29 unique queries executed. |