> Hello,
Hi, no HTML mail please, thx :)
(I know, I use Outlook, but it still isn't ok, since the layout when
replying to HTML mails is terrible)
> I'm attempting to read the properties of a NodeRevisionDescriptor and I
hit a snag.
> Specifically with the NodeProperty "displayname", it's stored as CDATA.
> The first problem is...how do I determine when a NodeProperty's value
contains XML
> data? The NodeProperty.getType() method is empty all the time. I would
think it
> would at least say the property type is a String.
Well, it's a tricky issue.
In WebDAV, the property value should be well-formed XML. Since Slide is a
WebDAV centric CMS, perhaps we should enforce this. Right now, we don't,
because nobody implemented it (and also because it's an expensive
operation).
Since displayname has a very high probability to contain characters that
would make the XML parser on the client side throw some exception, I decided
to wrap it with a CDATA.
This can be considered to be a hack for this special case.
Also, I thought getType would be nice to have if we decided to type
properties, but maybe this doesn't make sense if we decide the type is
always text/xml (since anything can be marshalled to that one way or the
other). In that case, we can remove the call, and change the getProperty
return value to String.
> Second, after determining I'm dealing with XML data how would you
recommend
> reading it in? Don't kill yourself explaining this part because I have a
handle
> on XML.
Lol. Way cool ;-)
> I'm just curious as to whether you guys have created any slick
slide/jakarta
> convenience classes for handling this type of situation.
No, sorry. See above ...
I think we should enforce the fact that properties are well-formed XML,
eventually.
> Finally, Remy thank you for your last response and all the great support
you've
> given everyone else on this mailing list. I've found your responses to
everyone
> extremely helpful. Thanks for taking the time!
No problem :)
I don't know if you've seen it, but I've posted the slides for the J1 BOF on
the website :
http://jakarta.apache.org/slide/j1-2001/webdav.ppt
Remy