Hi,

For example you can do the following:

       Collection col = getCollection (collectionPath);
        XMLResource document=null;
        document = (XMLResource) col.getResource(docKey);
        org.w3c.dom.Document doc=(org.w3c.dom.Document)
(document.getContentAsDOM());
        col.close();

Best regards.
Roman

tom john wrote:

> is it possible to get document from the collection as
> xml dom document?
>
> if not what is the easier way to convert Resource to
> dom document other than getting string out of it and
> creating dom document?
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com

Reply via email to