Copied to clipboard

Flag this post as spam?

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


  • Mich@el 5 posts 7 karma points
    Sep 01, 2009 @ 12:08
    Mich@el
    0

    XmlContent' is ambiguous because multiple kinds of members with this name exist in class 'umbraco.content'.

    Hi Forum
    I've some problems with this line of code:
    umbraco.content.Instance.XmlContent.GetElementById

    The error states that: 'XmlContent' is ambiguous because multiple kinds of members with this name exist in class 'umbraco.content'.

    In my project I've a reference to
    businesslogic
    cms
    controls
    interfaces
    umbraco
    Am I missing a reference or? Any ideas would be appreciated!

    umbraco v 4.0.2.1 (Assembly version: 1.0.3441.17657)

    I've a reference project - where I uses the exact same line of code - without any problems - I've checked and rechecked all references :-)

    /Michael

  • Chris Koiak 700 posts 2626 karma points
    Sep 01, 2009 @ 21:15
    Chris Koiak
    0

    you could try the following instead.

    umbraco.library.GetxXmlDocument()

    or

    umbraco.library.GetXmlNodeByXPath("//node[@id='1234']");
  • Mich@el 5 posts 7 karma points
    Sep 02, 2009 @ 12:05
    Mich@el
    0

    Hi Chris

    it works, it gives me an nodeiterator so I just take the XMLNode out with:

    xmlNode = ((System.Xml.IHasXmlNode)xNodeIte.Current).GetNode();

    Thansk

    For your help

    /Regards

    Michael

Please Sign in or register to post replies

Write your reply to:

Draft