Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2004, 02:13 PM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using VB.NET and XML offline

Hello,
I'm having trouble reading in an XML file while my machine is offline.
I suspect it is trying to get a schema or something of that ilk from the net. It is throwing an exception when I try to load the XML file. Can I use XmlDocument without being on the Internet? If so, what do I need to do?

Thanks,

Bruce Hamilton - MCAD.NET



 
Old April 9th, 2004, 09:26 AM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found the problem. The XML had an external reference to a DTD that was on the Internet. This was in the second line of the XML file,
<!DOCTYPE ...> with a reference to a URL on the Internet. When this line is commented out, the XML is not checked against the DTD file, but the program works the same with or without Internet connection.

Bruce Hamilton -MCAD.NET






Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.net, adding XML data to an existing XML file saikoboarder XML 11 April 17th, 2008 04:19 PM
Parse XML doc using VB.NET into ASP.NET page kwilliams Classic ASP XML 17 November 11th, 2005 10:42 AM
xml in vb.net redeye2 Pro VB.NET 2002/2003 1 November 10th, 2004 06:48 PM
XML to XML through an XSLT (VB.NET) dimondwoof XSLT 1 June 25th, 2003 12:07 PM
XML to String in VB.NET dimondwoof XML 1 June 24th, 2003 10:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.