You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by McClain Looney <m...@loonsoft.com> on 2003/12/25 23:38:21 UTC

retrieve old revision

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm using the slide wedav libs to manipulate a subversion dav repository, 
unfortuantely Property doesn't seem to handle property elements which 
themselves contain sub-elements, as below (the result of a PROPFIND):

<version-controlled-configuration xmlns="DAV:">
	<href xmlns="DAV:">/sammel/!svn/vcc/default</href>
</version-controlled-configuration>

Apparently there is some confusion as to whether this is legal.  In any event, 
would more correct behavior for DOMUtils to return some indicator of this 
content, instead of the empty string it returns now?


- -- 
McClain Looney
LoonSoft LLC
m@loonsoft.com

Public key E3122EF8 available 
at http://wwwkeys.us.pgp.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/62bnJY6NG+MSLvgRAlkKAKCe+1gs9e8hXlF07bQe9IFQT6CP2gCeJ3fG
ARWxToQ8ebh9mdcijjcwp5s=
=VSVT
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: retrieve old revision

Posted by Ingo Brunberg <ib...@fiz-chemie.de>.
I fear I didn't understand exactly what you mean. Property has two
different methods to obtain property values:

1) getPropertyAsString() just returns all the text nodes which are
   children of the property element concatenated as one string. In
   your example this results in an empty string of course.

2) getElement() returns the property as a full featured DOM
   element. So you can extract the desired information by standard DOM
   methods.

Regards,
Ingo

> Hello,
> 
> I'm using the slide wedav libs to manipulate a subversion dav repository,=20
> unfortuantely Property doesn't seem to handle property elements which=20
> themselves contain sub-elements, as below (the result of a PROPFIND):
> 
> <version-controlled-configuration xmlns=3D"DAV:">
> 	<href xmlns=3D"DAV:">/sammel/!svn/vcc/default</href>
> </version-controlled-configuration>
> 
> Apparently there is some confusion as to whether this is legal.  In any eve=
> nt,=20
> would more correct behavior for DOMUtils to return some indicator of this=20
> content, instead of the empty string it returns now?
> 
> 
> =2D --=20
> McClain Looney
> LoonSoft LLC
> m@loonsoft.com


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org