Connecting Tech Pros Worldwide Forums | Help | Site Map

Consuming XmlNode type with classic ASP.

rocket504@gmail.com
Guest
 
Posts: n/a
#1: Sep 5 '08
We wrote a .NET class library that contains a class that produces an
XML document. We traverse that document and set a number of
properties. We wrapped the resulting DLL using COM so that we can
consume it using classic ASP. All of that works just fine. We can
access the XML document and all of the properties. We can load the
XML into a classic ASP variant using the DOM, etc.

We don't need 95 percent of the XML so we are attempting to wring out
some overhead by grabbing an XmlNode from the XML document and setting
it to a property. Since the DLL is returning a complex type, how can
we access the XmlNode property using classic ASP?

Kind of a weird one I know. Need some expert assistance here.

=?Utf-8?B?T2xkIFBlZGFudA==?=
Guest
 
Posts: n/a
#2: Sep 5 '08

re: Consuming XmlNode type with classic ASP.




"rocket504@gmail.com" wrote:
Quote:
We wrote a .NET class library that contains a class that produces an
XML document. We traverse that document and set a number of
properties. We wrapped the resulting DLL using COM so that we can
consume it using classic ASP. All of that works just fine. We can
access the XML document and all of the properties. We can load the
XML into a classic ASP variant using the DOM, etc.
>
We don't need 95 percent of the XML so we are attempting to wring out
some overhead by grabbing an XmlNode from the XML document and setting
it to a property. Since the DLL is returning a complex type, how can
we access the XmlNode property using classic ASP?
Ummm...add a method to the DLL??

Why do the work in ASP if you can do it in the DLL code? Just add another
method to call that allows the ASP code to select a single XmlNode.

What am I missing?

Anthony Jones
Guest
 
Posts: n/a
#3: Sep 5 '08

re: Consuming XmlNode type with classic ASP.


<rocket504@gmail.comwrote in message
news:890bb88c-17be-4a1b-9363-a119877ac787@c65g2000hsa.googlegroups.com...
Quote:
We wrote a .NET class library that contains a class that produces an
XML document. We traverse that document and set a number of
properties. We wrapped the resulting DLL using COM so that we can
consume it using classic ASP. All of that works just fine. We can
access the XML document and all of the properties. We can load the
XML into a classic ASP variant using the DOM, etc.
>
We don't need 95 percent of the XML so we are attempting to wring out
some overhead by grabbing an XmlNode from the XML document and setting
it to a property. Since the DLL is returning a complex type, how can
we access the XmlNode property using classic ASP?
>
Kind of a weird one I know. Need some expert assistance here.

Consider returning XmlNode.OuterXml as a string instead. Then performing a
LoadXML on an MSXML document.


--
Anthony Jones - MVP ASP/ASP.NET

Anthony Jones
Guest
 
Posts: n/a
#4: Sep 5 '08

re: Consuming XmlNode type with classic ASP.


"Old Pedant" <OldPedant@discussions.microsoft.comwrote in message
news:A9029E81-2078-4838-95E1-D70D85D65C7E@microsoft.com...
Quote:
>
>
"rocket504@gmail.com" wrote:
>
Quote:
>We wrote a .NET class library that contains a class that produces an
>XML document. We traverse that document and set a number of
>properties. We wrapped the resulting DLL using COM so that we can
>consume it using classic ASP. All of that works just fine. We can
>access the XML document and all of the properties. We can load the
>XML into a classic ASP variant using the DOM, etc.
>>
>We don't need 95 percent of the XML so we are attempting to wring out
>some overhead by grabbing an XmlNode from the XML document and setting
>it to a property. Since the DLL is returning a complex type, how can
>we access the XmlNode property using classic ASP?
>
Ummm...add a method to the DLL??
>
Why do the work in ASP if you can do it in the DLL code? Just add another
method to call that allows the ASP code to select a single XmlNode.
>
What am I missing?
>
The fact that its .NET dll using COM interop which will be using one of the
..NET XML DOM implementation which does not support COM interop. IOW you
can't return System.Xml.XmlNode from a COM component.

--
Anthony Jones - MVP ASP/ASP.NET

Closed Thread