You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by tom john <cy...@yahoo.com> on 2002/05/30 16:53:20 UTC
getting document from collection as DOM document
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
Re: getting document from collection as DOM document
Posted by KOZLOV Roman <r-...@opencascade.com>.
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