Mantis Bugtracker
  

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

- Relationships

- Notes
(0005261)
domdorn
05-19-11 07:52

we'll have to implement the saveXML( env, object ) method in
modules/quercus/src/com/caucho/quercus/lib/dom/DOMDocument.java
 
(0005263)
domdorn
05-19-11 10:57

php/1z22
php/1z23

resolved in current trunk, will be in 4.0.19
 

- Issue History
Date Modified Username Field Change
05-17-11 10:39 alex New Issue
05-17-11 11:19 ferg Project Resin => Quercus
05-19-11 07:52 domdorn Note Added: 0005261
05-19-11 07:52 domdorn Status new => acknowledged
05-19-11 10:57 domdorn Status acknowledged => resolved
05-19-11 10:57 domdorn Resolution open => fixed
05-19-11 10:57 domdorn Assigned To  => domdorn
05-19-11 10:57 domdorn Note Added: 0005263
05-22-11 09:36 kdecherf Issue Monitored: kdecherf


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed.
29 unique queries executed.
Powered by Mantis Bugtracker