monkeybiz Posted March 21, 2003 Posted March 21, 2003 hELLO,.. I get this error message when i load an xmlfile from a webserver and try to save it. Is this because I don't have the access rights or need to import or set something to get it to support URI format? There's no prob reading the xmlfile but only when saving... Quote
a_jam_sandwich Posted March 21, 2003 Posted March 21, 2003 Make sure you USE webrequest for URI e.g. (http://HTTP://www.somewhere.com/mydoc.xml) and not filerequest Andy Quote Code today gone tomorrow!
monkeybiz Posted March 21, 2003 Author Posted March 21, 2003 umm, well i did this xmldocument.load("http://www.somewhere.com/myXml.xml") then made some changes to the xml file then xmldocument.save("http://www.somewhere.com/myXml.xml") and there's where the exception is thrown. Is this what you mean? By the way, I didn't do any connection to the server prior to this, just directly loaded from the website.. Quote
a_jam_sandwich Posted March 21, 2003 Posted March 21, 2003 Sorry it was my mis understanding Quote Code today gone tomorrow!
monkeybiz Posted March 21, 2003 Author Posted March 21, 2003 No, it's okay, I appreciate your help! :) Quote
a_jam_sandwich Posted March 21, 2003 Posted March 21, 2003 I don't belive the XML class allows uploading, just saving to files Andy Quote Code today gone tomorrow!
*Gurus* divil Posted March 21, 2003 *Gurus* Posted March 21, 2003 monkeybiz, you have me really confused. How do you expect anything to be able to save to a webserver? They are inherantly read-only. Otherwise, I could just save my work to http://www.microsoft.com. :P Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
monkeybiz Posted March 22, 2003 Author Posted March 22, 2003 that's what i thought so too. Now I'm thinking of using Java Server Pages cos I've used it before, as everytime I try to add an Active Server page, they will prompt me for some directory which I can make no sense of.. My friend passed me something like this: <%ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; DataSource=c:\blalbalba %> Does this mean that I can direcly access the files on the server? Quote
*Gurus* divil Posted March 22, 2003 *Gurus* Posted March 22, 2003 No, that's a connection string for a database. It's possible that you could write some ASP that would write files to the webserver depending on information passed to it, but the best way would be to go in via FTP if possible. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
philprice Posted March 22, 2003 Posted March 22, 2003 Do this Dim feed As New RSSFeed Dim webRead As New System.Net.WebClient Dim XMLDoc As XPathDocument '' Load data from web in XPathDocument XMLDoc = New XPathDocument(webRead.OpenRead(strRSSUrl)) '' Makes a Node interator Dim docNavigator = XMLDoc.CreateNavigator() If you want to node iterate. Ive used WebReader because in my set of classes i access stuff that does not allways end in .xml, and XPAthDocument() doesnt like that :) Quote Phil Price� Visual Studio .NET 2003 Enterprise Edition Microsoft Student Partner 2004 Microsoft Redmond, EMEA Intern 2004
monkeybiz Posted March 24, 2003 Author Posted March 24, 2003 Hello!! Just wanted to thank everyone for their help and advice, I have finally solved my problem by sourcing the internet for FTP class Libraries, and I'm currentl using one now on trial version. Which is fine by me anyway cos it's a school project, not a real live commercial thing. In case you're wondering, I downloaded Key Technology's FTP class libraries. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.