Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kevin Farrow 46 posts 67 karma points
    Sep 20, 2010 @ 16:25
    Kevin Farrow
    0

    using umbraco.library.GetXmlAll() in 4.5

    Could anyone help me?

    I need to read all nodes and filter on the Document Type. I believe there isn't a nodeTypeAlias anyomre and that I will need to use nodeType instead but can't find any examples of using the API with Umbraco 4.5.

    Would I be better off using Linq to Umbraco? If so, does anyone have any example code?

    Thanks
    Kevin

     

     

     

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Sep 21, 2010 @ 00:21
    Aaron Powell
    0

    Are you trying to do it in .NET or XSLT?

    In XSLT the name of the XML node is the alias of the document type, so you can do:

    <xsl:variable name="nodes" select="//myNode" />

    Otherwise you can use LINQ to Umbraco, you then end up with a strongly typed collection of the nodes

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies