Hello Experts.,
I am currently working on Business Central Up-gradation.
I wrote code as shown in below Screen Shot
but getting error While declaring variable NodeAttributes: DotNet XmlNamedNodeMap;
Error : DotNet 'XmlNamedNodeMap' is missing

Hello Experts.,
I am currently working on Business Central Up-gradation.
I wrote code as shown in below Screen Shot
but getting error While declaring variable NodeAttributes: DotNet XmlNamedNodeMap;
Error : DotNet 'XmlNamedNodeMap' is missing
Hi,
You might have to refactor the whole thing. In Saas, and without .NET I would try something like this:
local procedure GetNodeAttribute(CurrNode: XmlNode; AttributeName: text[250]): text[250]
var
XmlAttrib: XmlAttribute;
XmlElem: XmlElement;
XmlAttributeColl: XmlAttributeCollection;
I: Integer;
begin
IF CurrNode.IsXmlElement THEN
XmlElem := CurrNode.AsXmlElement();
IF XmlElem.HasAttributes THEN
XmlAttributeColl := XmlElem.Attributes();
for I := 1 to XmlAttributeColl.count do begin
IF XmlAttributeColl.Get(I, XmlAttrib) then
if XmlAttrib.Name = AttributeName then
exit(XmlAttrib.Value);
end;
end;
The nodemap is not implemented in AL and the Attribute collection that inherits from Node map has no implementation for GetNamedItem.
Tero