[opencms-dev] External editing
Alexander Kandzior
alex at opencms.org
Thu Jul 8 19:49:01 CEST 2004
Matt,
> > I think it would be just an API call, somhing like
> > this:
> >
> > 1. Somehow webdav http information about the file to edit
> is gathered.
> > 2. The file is read from VFS with readFile(name) 3. The
> content of the
> > file is transformed somehow from XML to HTML
>
> This is as easy as grabbing the CDATA section from the DOM, right?
Not quite, the links would not be part of the page then. However in OpenCms
6 / current CVSHEAD we have the XmlPage API which has everything like "give
me from xmlpage P the element named E with locale L. So this is fairly easy.
Writing content back the same. And the XmlPage even automatically gests
validated against the xmlpage DTD when you write it to the VFS.
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
More information about the opencms-dev
mailing list