Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / December 2004

Tip: Looking for answers? Try searching our database.

How do I write a response to a request from an xml data island?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nicole Schenk - 23 Dec 2004 20:03 GMT
I need to know the code I must write to respond xml to a data island as a
result from a src request from the data island.

Thanks so much
rdcpro - 24 Dec 2004 01:27 GMT
Assuming the data island has a src attribute like: "getXML.asp", this ASP
page would do it:

<%@ language="JScript"%>
<%
var xmlDoc = new ActiveXObject("MSXML2.DomDocument");
xmlDoc.loadXML("<root>Some XML</root>");
Response.ContentType="text/xml";
xmlDoc.save(Response);
%>

Regards,
Mike Sharp

> I need to know the code I must write to respond xml to a data island as a
> result from a src request from the data island.
>
> Thanks so much
Nicole Schenk - 24 Dec 2004 22:24 GMT
> Assuming the data island has a src attribute like: "getXML.asp", this ASP
> page would do it:
[quoted text clipped - 14 lines]
>>
>> Thanks so much

That is really clear thanks. I also have enjoyed your site.

Will this also work in .net?

Thanks
rdcpro - 26 Dec 2004 23:01 GMT
Well, the code won't work word for word, but yes, the concept is the same no
matter what the server is.  The src attribute is looking for an XML document,
but if the URI points to a web server that constructs a dynamic XML document,
or if it's a static XML file, the client doesn't know the difference.  In
most cases, it's a good idea to set the contenttype correctly, "text/xml" in
this case.

Regards,
Mike Sharp

> > Assuming the data island has a src attribute like: "getXML.asp", this ASP
> > page would do it:
[quoted text clipped - 20 lines]
>
> Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.