473,394 Members | 1,748 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.

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 34571
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: 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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.