How to create dotnet variable instance with no Constructors
nanda1435
Member Posts: 5
Hi,
I just started moving my automations to DotNet components.
If find no Constructors for the DotNet variable "MSXML.DOMDocument.'Microsoft.MSXML, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'".
How can I create instanve of my variable?
wher can I find the documentation about the constructors for all the DotNet componets?
I just started moving my automations to DotNet components.
If find no Constructors for the DotNet variable "MSXML.DOMDocument.'Microsoft.MSXML, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'".
How can I create instanve of my variable?
wher can I find the documentation about the constructors for all the DotNet componets?
0
Comments
-
xmlDom := xmlDom.XmlDocument;
xmlDom.Load('C:\Temp\NAVSetupPORT.xml');0 -
I use MSXML.DOMDocument in 'Microsoft.MSXML' not the System.Xml.XmlDocument in System.Xml.
Thanks.0 -
Apparently you can't use it. MS uses System.xml. I suggest to use that. Is there a reason why you want to use MsXML?0
-
Becuase we used "transformNodeToObject" function with the old the Automation. Now we want to replace the same with DotNet related components for all existing automations. I cann't find the similor function in System.XML. Please sugguest how can I replace the above function by using System.XML.
I have very little DotNet knoledge and only NAV.
Thanks.0 -
A blog with solution is coming up.0
-
0
-
If the object does not have a constructor, there is usually a class factory to create the object type. In this case it is "MSXML.DOMDocumentClass.'Microsoft.MSXML, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'"nanda1435 wrote:How can I create instanve of my variable?
wher can I find the documentation about the constructors for all the DotNet componets?
To create an XMLDomDocument, do this:xmlDOM := xmlDOMConstructor.DOMDocumentClass;
Where "xmlDOMConstructor" is of type MSXML.DOMDocumentClass.0 -
I now used system. xml.xmldocument. The same as in the blog. Thanks Rashed.
Information about the class is very useful in another scenario. Thanks Mark.
8)0 -
The link to the blog doesn't work any longer. I have this problem and would like to know the answer.
0 -
Hey Nanda,
Check out the below links if it helps you anyways.
https://rockwithnav.wordpress.com/2016/02/23/consume-net-webservice-automation/
https://rockwithnav.wordpress.com/2016/02/23/consume-net-webservice-dotnet-data-type/Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Try the WayBack Machine on Reshed's link: web.archive.org/web/*/http://mibuso.com/blogs/ara3n/2012/12/07/how-to-remove-namespaces-in-xmlport-in-nav-2013/
Even though there's an answer to the original constructor question above, I would like to draw your attention to Microsoft's view on using MSXML on .NET0 -
Try the WayBack Machine on Reshed's link: web.archive.org/web/*/http://mibuso.com/blogs/ara3n/2012/12/07/how-to-remove-namespaces-in-xmlport-in-nav-2013/
Even though there's an answer to the original constructor question above, I would like to draw your attention to Microsoft's view on using MSXML on .NET
Thanks for the tip, so which dll can you still use?0 -
, just as standard NAV does also.The .NET Framework classes in the System.xml namespaces should be used0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions


