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 / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

ASP.net 2 xml.document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jon Spivey - 18 Feb 2006 13:27 GMT
Hi,
Moving from asp.net 1.1 to 2. I have an xml control on a page in the code
behind file I pull in some xml from a remote web site and format it with an
xsl stylesheet, code is just this

Dim s As String = "http://site.com/page.xml"
Dim d As New System.Xml.XmlDocument
Dim u As New System.Xml.XmlTextReader(s)
d.Load(u)
Xml1.Document = d
Xml1.TransformSource = "xsl/StyleSheet.xsl"

The code works fine but VS 2005 is telling me it's obsolete. What would be
the correct way to do this?

Thanks,
Jon
Stanley Alex - 23 Feb 2006 15:25 GMT
Hi Jon,

Try:

Xml1.XPathNavigator = d.CreateNavigator

instead of:

Xml1.Document = d

> Hi,
> Moving from asp.net 1.1 to 2. I have an xml control on a page in the code
[quoted text clipped - 13 lines]
> Thanks,
> Jon

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



©2009 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.