Welcome! Log In Create A New Profile

Advanced

How do treat XmlDocument Object?

Posted by Alexandre Aragão 
Alexandre Aragão
How do treat XmlDocument Object?
July 22, 2008 08:18PM
hi!

Tha last question..hehe

I´m executing a .NET DLL that return a XMLDocument object.

I´m using the code above:

oObj is "DLLNAME.CLASS"
oXML is "System.Xml.XmlDocument"

oXML = oObj:GetXML()

But I´m receiving the error: INCOMPATIBLE TYPES DURING ASSIGNMENT

How can I receive and treat that object??

thanks

Alexandre Aragão
Re: How do treat XmlDocument Object?
July 22, 2008 08:50PM
Guys,

I´ve found a way!

I was having problems because the component was returning a XmlDocument (System.Xml.XmlDocument).

THe solution is :

doc is string

oCon is object CLASSNAME dynamic = new CLASSNAME()

//use the System.Xml assembly
oXML is object "System.Xml.XmlDocument" dynamic

oXML = oCon:MethodName()
doc = oXML:InnerXml


Now we have a string that we can treat freely!

thanks,
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: