473,394 Members | 1,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Error 'The path is too long...' while converting dataset to xmldocument

Hi,

I have a dataset that I am trying to convert to xmldocument.
I get a message: "The path is too long after being fully qualified. Make sure path is less than 260 characters."

My code is very simple:

Dim ds As DataSet
ds = ws.get_POItemsDS("504393") '-- dataset is populated here

Dim xmlDocument As New System.Xml.XmlDocument
'Converting the DataSet data to XML and load it into the xmlDocument()
xmlDocument.Load(ds.GetXml()) '-- this gives me the error

Anybody can help?
Feb 26 '07 #1
2 1761
dorinbogdan
839 Expert 512MB
Try to call xmlDocument.LoadXml method instead of xmlDocument.Load.
Feb 26 '07 #2
Try to call xmlDocument.LoadXml method instead of xmlDocument.Load.
Thanks, it worked
Feb 26 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Murali | last post by:
I am using XmlDocument Object to open SVG File. Its working fine some PCs. On Some PCs its giving Operation Timeout Error. Dim objXML As New XmlDocument Try...
6
by: Christoph Duesmann | last post by:
Hi ! Here's my problem in english :-) I want to convert the mssecure.xml file from Microsoft into an dataset to store it in an SQL-Database. My code in VB looks like this : Dim ds As New...
5
by: Patrick | last post by:
I understand it is built in behaviour that if an ASP.NET's web.config is set to: <customErrors mode="RemoteOnly" /> then I only get a detailed error message on screen when the ASP.NET...
2
by: Henrik | last post by:
im reciving an error when i tries to read multidimensional XML data, into my system. I'm receving the same errors discriped at: http://support.microsoft.com/default.aspx?scid=kb;en-us;325695...
8
by: mohit | last post by:
Hi, I am creating a web application in Web Matrix on the .NET framework. I have two directories :AddUser and FormAuth in a Directory P. AddUser contains a file AddUser.aspx FormAuth contains :...
1
by: SenthilVel | last post by:
Hi I am in the Process of conversion of my existing 1.1 Dotnet Code to 2.0 framework. for each project when i compile in VS2005 , i get this error\warning: Use command line option...
3
by: ankitdave | last post by:
Hi Guyz.. I am working on the creating a web service and I have a code like Public function test (byval query as string) as string query.loadxml (queryxml)
6
by: Lloyd Dupont | last post by:
On "some client's computer" the folowing C# code: == XmlDocument doc = new XmlDocument(); .... doc.Save(Application.LocalUserAppDataPath + "config.config"); == throw the following error: ==...
2
by: Manikrag | last post by:
Hi All, I am getting error while am loading RSS Stream in XMLDocument object. The error is as follows. "System.Xml.XmlException: '', hexadecimal value 0x19, is an invalid character. Line 18,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.