sabre/xml usage

104 views
Skip to first unread message

Mike Fisher

unread,
Jul 18, 2014, 4:46:30 AM7/18/14
to sabredav...@googlegroups.com
Hi,

I'm looking at using the sabre/xml composer package but am finding the documentation a little shy! I haven't found anything other than the README on GitHub, is that right?

Are there any open source examples of advanced usage? Particularly using the element map and nested objects.

I'd be happy to update the package README with more docs once I've figured it out!

M

Evert Pot

unread,
Jul 18, 2014, 12:23:10 PM7/18/14
to sabredav...@googlegroups.com
Hey Mike,

There's an aging branch of sabredav that uses it. The examples are accurate, but I need to update it to be up to date with the latest sabredav again:

https://github.com/fruux/sabre-dav/tree/xml-rewrite

Here's a list of elements that have custom properties, and are often nested:

https://github.com/fruux/sabre-dav/blob/xml-rewrite/lib/Sabre/DAV/XMLUtil.php#L24

I don't consider the xml package to be done.. I think there's a few iterations needed on the API to make it better, and I also would like to allow people to use their own prefixes when writing and reading xml elements.

But further documentation would certainly be welcome :)

Cheers,
Evert
Reply all
Reply to author
Forward
0 new messages