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

Help: XmlDocument error!

This is a .net 1.1 question. I am attempting to load and process an
XML file (see below) with XmlDocument. I can load the file:

XmlDocument doc = new XmlDocument();
doc.Load("dump.xml");

but when I attempt to access it, I receive a "Additional information:
System error." message. I tried the XmlTextReader , but have the
same issue. The only reader that appears to work is the
XmlValidatingReader.

Question, if this is a an XML issue, why can I process the XML with
XmlValidatingReader and not XmlDocument? Also, I can load the
XmlDocument from the XmlValidatingReader but why not reading the xml
directly
Thanks

<?xml version="1.0"?>
<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<database name="store_sunshop">
<table_structure name="items">
<field Field="itemid" Type="int(10) unsigned" Null=""
Key="PRI" Extra="auto_increment" />
<field Field="categories" Type="varchar(250)"
Null="YES" Key="" Extra="" />
<field Field="title" Type="varchar(200)" Null="YES"
Key="" Extra="" />
<field Field="imagename" Type="varchar(250)"
Null="YES" Key="" Extra="" />
<field Field="thumb" Type="varchar(250)" Null="YES"
Key="" Extra="" />
<field Field="poverview" Type="text" Null="YES" Key=""
Extra="" />
<field Field="pdetails" Type="text" Null="YES" Key=""
Extra="" />
<field Field="meta_keywords" Type="varchar(255)"
Null="YES" Key="" Extra="" />
<field Field="meta_description" Type="varchar(255)"
Null="YES" Key="" Extra="" />
<field Field="quantity" Type="int(11)" Null="YES"
Key="" Extra="" />
<field Field="sold" Type="int(11)" Null="YES" Key=""
Extra="" />
<field Field="retail" Type="float" Null="YES" Key=""
Extra="" />
<field Field="price" Type="float" Null="YES" Key=""
Extra="" />
<field Field="sprice" Type="float" Null="YES" Key=""
Extra="" />
<field Field="fship" Type="float" Null="YES" Key=""
Extra="" />
<field Field="weight" Type="float" Null="YES" Key=""
Extra="" />
<field Field="shipsep" Type="enum('1','0')" Null="YES"
Key="" Default="0" Extra="" />
<field Field="length" Type="float" Null="YES" Key=""
Default="0" Extra="" />
<field Field="width" Type="float" Null="YES" Key=""
Default="0" Extra="" />
<field Field="height" Type="float" Null="YES" Key=""
Default="0" Extra="" />
<field Field="maxperbox" Type="float" Null="YES"
Key="" Default="0" Extra="" />
<field Field="cship" Type="char(3)" Null="YES" Key=""
Extra="" />
<field Field="ctax" Type="char(3)" Null="YES" Key=""
Extra="" />
<field Field="isnew" Type="char(3)" Null="YES" Key=""
Extra="" />
<field Field="isfeatured" Type="char(3)" Null="YES"
Key="" Extra="" />
<field Field="available" Type="varchar(5)" Null="YES"
Key="" Extra="" />
<field Field="viewable" Type="char(3)" Null="YES"
Key="" Extra="" />
<field Field="manufacturer" Type="varchar(255)"
Null="YES" Key="" Extra="" />
<field Field="vendor" Type="varchar(255)" Null="YES"
Key="" Extra="" />
<field Field="sku" Type="varchar(150)" Null="YES"
Key="" Extra="" />
<key Table="items" Non_unique="0" Key_name="PRIMARY"
Seq_in_index="1" Column_name="itemid" Collation="A" Cardinality="39"
Null="" Index_type="BTREE" Comment="" />
<options Name="items" Engine="MyISAM" Version="9"
Row_format="Dynamic" Rows="39" Avg_row_length="159" Data_length="6220"
Max_data_length="4294967295" Index_length="2048" Data_free="0"
Auto_increment="54" Create_time="2006-11-09 16:08:09"
Update_time="2006-11-10 15:47:09" Collation="latin1_swedish_ci"
Create_options="" Comment="" />
</table_structure>
<table_data name="items">
<row>
<field name="itemid">1</field>
<field
name="categories">3-&gt;1|5-&gt;8-&gt;34|9-&gt;44-&gt;49</field>
<field name="title">TEST Guide</field>
<field name="imagename"></field>
<field name="thumb"></field>
<field name="poverview">23nd edition - 2007</field>
<field name="pdetails"></field>
<field name="meta_keywords"></field>
<field name="meta_description"></field>
<field name="quantity">0</field>
<field name="sold">0</field>
<field name="retail">0</field>
<field name="price">22.95</field>
<field name="sprice">0</field>
<field name="fship">0</field>
<field name="weight">0</field>
<field name="shipsep"></field>
<field name="length">9</field>
<field name="width">1</field>
<field name="height">0</field>
<field name="maxperbox">0</field>
<field name="cship">Yes</field>
<field name="ctax">Yes</field>
<field name="isnew">Yes</field>
<field name="isfeatured">Yes</field>
<field name="available"></field>
<field name="viewable">No</field>
<field name="manufacturer">x</field>
<field name="vendor">x</field>
<field name="sku">660749589466</field>
</row>
</table_data>
</database>
</mysqldump>

Nov 29 '06 #1
0 1406

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

Similar topics

1
by: Alain-Serge | last post by:
Hello, I'm trying to create a XML document from a string comming from a C++ program but I got an exception saying: org.xml.sax.SAXParseException: Element type "DataFromWebServer" is not...
0
by: Jason | last post by:
I have an XML web control on a usercontrol. The only purpose for this usercontrol is to get XML data from a URL and display it in the xml web control with the help of XSL. I can get this to...
1
by: Martin Honnen | last post by:
With both .NET 1.0 and 1.1 I have found the following strange behaviour where System.Xml.XmlDocument.LoadXml doesn't throw an error when parsing a text node with a character reference to an invalid...
2
by: David Elliott | last post by:
I am creating a configuration class to read / write a standard configuration file. <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="ConnectionString"...
6
by: Chua Wen Ching | last post by:
Hi there, I had this xml file with me (not yet consider implementing xml namespaces yet). <?xml version='1.0'?> <Object> <Windows> <EID>1</EID> <EDesc>Error 1</EDesc> </Windows>
5
by: | last post by:
Hello Guys, I am trying to render an Xml dataset into HTML using XSLT. When I am loading the XSLT file into transform object to render it. Here is the code snippet: <!-- XslTransform...
1
by: jens Jensen | last post by:
Hello , i'm calling a webservice generated with oracle webservice java tools. I'm not able to add a web reference to a .net client the usual way with visual studio 2005. I was therefore...
2
by: John Smith | last post by:
I'm writing webervice client using .Net 2.0. I have this class: public class MyWebService : SoapHttpClientProtocol { public XmlDocument validate(string url, XmlDocument xmlDocument) {...
1
by: TheDude5B | last post by:
Hi, I have the following code which accesses an XML document and then displays the document using XSL....
14
by: anju458 | last post by:
Hi, I had a function to compare two XML files within a project . Now I need to change that into a commandline exe in such a way that it whouls accept two params from the Command line. I have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.