Connecting Tech Pros Worldwide Help | Site Map

Consuming XmlNode type with classic ASP.

 
LinkBack Thread Tools Search this Thread
  #1  
Old September 5th, 2008, 07:35 PM
rocket504@gmail.com
Guest
 
Posts: n/a
Default Consuming XmlNode type with classic ASP.

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.

  #2  
Old September 5th, 2008, 08:45 PM
=?Utf-8?B?T2xkIFBlZGFudA==?=
Guest
 
Posts: n/a
Default 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?

  #3  
Old September 5th, 2008, 08:55 PM
Anthony Jones
Guest
 
Posts: n/a
Default 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

  #4  
Old September 5th, 2008, 08:55 PM
Anthony Jones
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.