Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi ForumI'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 businesslogiccmscontrolsinterfacesumbracoAm 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
you could try the following instead.
umbraco.library.GetxXmlDocument()
or
umbraco.library.GetXmlNodeByXPath("//node[@id='1234']");
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
you could try the following instead.
or
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
is working on a reply...