473,395 Members | 1,613 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,395 software developers and data experts.

There is an error in XML document

Okay - I get this error but I cannot tell which node in the XML is
causing the problem. The full error is:
There is an error in XML document (5, 266)
inner exception is:
Input string was not in correct format.

I used xsd.exe on my .xsd file. I have two XML files, one is the full
size of 500Meg and the other is a small sample. The small sample works
perfectly.

My main problem is I cannot tell how to find the error in the big file.

Any help is greatly appreciated.

Thanks!

Jan 1 '07 #1
2 34572
Duane wrote:
Okay - I get this error but I cannot tell which node in the XML is
causing the problem. The full error is:
There is an error in XML document (5, 266)
inner exception is:
Input string was not in correct format.

I used xsd.exe on my .xsd file. I have two XML files, one is the full
size of 500Meg and the other is a small sample. The small sample works
perfectly.

My main problem is I cannot tell how to find the error in the big file.
5 should be the line where the error occurs, 266 the position in the line.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jan 1 '07 #2
I'm going to take a wild guess and say that one of your XML nodes is
returning an attribute that has one or more unescaped question marks (or any
of the reserved entities, really, such as &, <, >) and is thus illegally
closing the attribute.

Try (and with your doc size, it could take a while):
System.Diagnostics.Debug.WriteLine(myDoc.OuterXml) . That will hopefully
dump to your console but with the line breaks. You then want to copy the
first 6 lines & paste it into VS (or any column-counting editor) and scroll
to column 266, line 5. Or, you could read the XML stream, dumping it out as
it reads it. When it breaks, you'll see the last writeable data in the
console.

Jan 2 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: InvisibleMan | last post by:
Hi, Thanks for any help in advance... Okay, I have the JS listed below that calls for the display of the (DIV) tag... cookie function not included, as don't feel its necessary but you'll get the...
4
by: david.kuczek | last post by:
I got the following error in a javascript I wrote. The script works fine, but why is the error being displayed??? ##### Here comes the little script: function...
6
by: linuxnooby | last post by:
Hi I want a form field to be selected when the page loads. But I get the error message Error: document.getElementById("ff") has no properties any ideas what I am doing wrong? code below
7
ak1dnar
by: ak1dnar | last post by:
Hi, I got this scripts from this URL There is Error when i submit the form. Line: 54 Error: 'document.getElementbyID(....)' is null or not an object What is this error. Complete Files
1
by: subvit | last post by:
function test_redirect(t,p) { 1) window.open("formappl.asp?id=1&apid="+t+"&prid="+p,'email','width=950,height=600,top=50,left=50'); 2) ...
6
by: therig | last post by:
I'm having issues, I've spent many hours searching and I'm a noob at javascript, any help will be greatly appreciated. I keep getting the following error: Error: document.forms.sec11_A has no...
4
by: manjugi | last post by:
Hi, I am running som web application at some point i have one web page contains some buttons,text field etc.when i click on button it gives an error message stating that "error:...
3
by: shiks1305 | last post by:
this js function is giving javascript error: document.forms.elements is null or not an object function DisableText() { var count = document.forms.elements.length; for (i=0; i<count; i++) {...
2
by: vps | last post by:
Please help me get the value of a textarea field: --------------------- The script --------------------- <html> <head> <script type="text/javascript">
8
by: ananjy | last post by:
Hi when i m trying to execute my ajax code using a link to display datas from another page named second.php., i got an error when the page loads in "ie"., which runs perfectly in firefox., here...
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:
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...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.