Anonymous | Login | Signup for a new account | 11-22-2024 04:29 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
Status | resolved | Product Version | 4.0.18 | ||||||
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); ?> |
||||||||
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. |