yes, and i should do this. however, i first want to understand why the line
of code (doc.appendChild(root);) was commented out. i don't want to
uncomment that line and have other functionality broken.
can someone explain what the comment means?
* Usage of streamToXML seems to be vectored through
* Collection.putObject(), which adds the element returned
* by streamToXML to the document. That makes the most sense
* and should be an explicit part of the XMLSerializable contract.
once we get the code right, then i'll write the unit test. (btw - is there
a good example unit test in our cvs? i'm not very proficient with junit.)
thanks
dave
-----Original Message-----
From: Kevin O'Neill [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 5:27 PM
To: [EMAIL PROTECTED]
Subject: RE: MetaService and Metadata
<snip />
> When I uncomment the doc.appendChild statement, I can fetch the metadata
> without a problem. I'm attaching a small perl program to verify it. Here
> are my steps to test it:
>
> 1. %ANT_HOME%\bin\ant
> 2. xindice debug
> 3. uncomment insert statements in dv-xi.pl 4. perl dv-xi.pl
> 5. comment out insert statements in dv-xi.pl 6. perl dv-xi.pl
>
> This outputs:
> $VAR1 = {
> 'result' => '<?xml version="1.0"?>
> <meta xmlns="http://apache.org/xindice/metadata"><system
> type="doc"><!--Create t
> ime is Mon Aug 04 17:10:13 PDT 2003--><attr name="created"
> value="1060042213333"
> /><!--Modified time is Mon Aug 04 17:10:13 PDT 2003--><attr
> name="modified"
> val
> ue="1060042213333" /></system></meta>'
> };
> ALL DONE
>
>
> let me know if this works for you.
> dave
Can this be converted to a unit test?
-k.