Viner, David wrote:
First, let me say... you rock. Thanks for getting this done!
Second, the streamToXML(Document doc) should invoke streamToXML(doc, true). That was simply an oversight on my part. The streamFromXML(Element source) I am not so sure about. If we invoke streamFromXML(source, true), then any "created" or "modified" times listed in the xml will be used by the MetaData object;
I think you are thinking only about rpc part. Note that the exact same method is used to read meta data from the storage. Meaning, if there is "false", then timestamps (if any) stored in meta.tbl will be ignored. So, in order to obtain those values from the storage, you have to set this value to true.
that is the MetaData will be updated to contain the created and modified times listed in the incoming xml. I'm not sure that this is the desired or intended behavior. It seems to me that the "modified" time (and "create" time) should be controlled by the internals of xindice by default, and by default the user should not be able to alter them by submitting new xml. If, however, the user truly wants to change the modified time externally, he or she is empowered by calling the streamFromXML with true as the second argument.
This will have to be investigated later... Will need to extend test case for this.
Vadim
Does that make sense? I'm not sure that I'm correct; this is just my gut instinct.
dave
...