Get content XML based on node ID Options
darrenjferguson
Posted: Wednesday, May 21, 2008 4:25:55 PM

Rank: Fanatic

Joined: 3/19/2008
Posts: 219
Location: London, UK
All.

Can anyone tell me the most efficient way to get the XML for a content item based upon it's ID.

I have looked at umbraco.library.GetXmlNodeById buts this seems to return all children of the specified node which I don't want.

Thanks.

Darren Ferguson - Umbraco level 2 certified
www.darren-ferguson.com - www.fergusonmoriyama.com
klajen
Posted: Sunday, August 24, 2008 9:26:01 PM
Rank: Newbie

Joined: 8/24/2008
Posts: 1
Location: Denmark
Some thing like this i would say:
int nodeId = 123;
umbraco.cms.businesslogic.web.Document doc = new umbraco.cms.businesslogic.web.Document(nodeId);

- Klaus M. Jensen
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.