473,799 Members | 3,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
XmlValidatingRe ader.

Question, if this is a an XML issue, why can I process the XML with
XmlValidatingRe ader and not XmlDocument? Also, I can load the
XmlDocument from the XmlValidatingRe ader 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_sun shop">
<table_structur e name="items">
<field Field="itemid" Type="int(10) unsigned" Null=""
Key="PRI" Extra="auto_inc rement" />
<field Field="categori es" Type="varchar(2 50)"
Null="YES" Key="" Extra="" />
<field Field="title" Type="varchar(2 00)" Null="YES"
Key="" Extra="" />
<field Field="imagenam e" Type="varchar(2 50)"
Null="YES" Key="" Extra="" />
<field Field="thumb" Type="varchar(2 50)" Null="YES"
Key="" Extra="" />
<field Field="povervie w" Type="text" Null="YES" Key=""
Extra="" />
<field Field="pdetails " Type="text" Null="YES" Key=""
Extra="" />
<field Field="meta_key words" Type="varchar(2 55)"
Null="YES" Key="" Extra="" />
<field Field="meta_des cription" Type="varchar(2 55)"
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="maxperbo x" 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="isfeatur ed" Type="char(3)" Null="YES"
Key="" Extra="" />
<field Field="availabl e" Type="varchar(5 )" Null="YES"
Key="" Extra="" />
<field Field="viewable " Type="char(3)" Null="YES"
Key="" Extra="" />
<field Field="manufact urer" Type="varchar(2 55)"
Null="YES" Key="" Extra="" />
<field Field="vendor" Type="varchar(2 55)" Null="YES"
Key="" Extra="" />
<field Field="sku" Type="varchar(1 50)" Null="YES"
Key="" Extra="" />
<key Table="items" Non_unique="0" Key_name="PRIMA RY"
Seq_in_index="1 " Column_name="it emid" Collation="A" Cardinality="39 "
Null="" Index_type="BTR EE" Comment="" />
<options Name="items" Engine="MyISAM" Version="9"
Row_format="Dyn amic" Rows="39" Avg_row_length= "159" Data_length="62 20"
Max_data_length ="4294967295 " Index_length="2 048" Data_free="0"
Auto_increment= "54" Create_time="20 06-11-09 16:08:09"
Update_time="20 06-11-10 15:47:09" Collation="lati n1_swedish_ci"
Create_options= "" Comment="" />
</table_structure >
<table_data name="items">
<row>
<field name="itemid">1 </field>
<field
name="categorie s">3-&gt;1|5-&gt;8-&gt;34|9-&gt;44-&gt;49</field>
<field name="title">TE ST Guide</field>
<field name="imagename "></field>
<field name="thumb"></field>
<field name="poverview ">23nd edition - 2007</field>
<field name="pdetails" ></field>
<field name="meta_keyw ords"></field>
<field name="meta_desc ription"></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">Ye s</field>
<field name="ctax">Yes </field>
<field name="isnew">Ye s</field>
<field name="isfeature d">Yes</field>
<field name="available "></field>
<field name="viewable" >No</field>
<field name="manufactu rer">x</field>
<field name="vendor">x </field>
<field name="sku">6607 49589466</field>
</row>
</table_data>
</database>
</mysqldump>

Nov 29 '06 #1
0 1422

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

Similar topics

1
1367
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 declared Here "DataFromWebServer" is the name of document root node. Here is the code:
0
1346
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 work if I log into the machine that is hosting the website, whether it be my dev box or staging box. When I try to access the page remotely, I get an error: This is an unexpected token. The expected token is 'QUOTE'. Line 1, position 110.
1
17140
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 characters like &#x1;. Using the CreateTextNode method I create a text node containing "\u0001a" (C# string literal notation). As far as I understand the DOM allows that and an implementation is not required to throw an error. When OuterXml is...
2
10390
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" value="server=(local);" /> </appSettings> </configuration> I am using a XmlDocument for my base implementation.
6
15513
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
1351
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 transCart = new XslTransform(); transCart.Load(Server.MapPath("1.xslt")); showCart.Document = cartFromSession;
1
4037
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 provided with a set of Dll that implement the proxy needed to consume this web service. I'm now wrapping these dlls in a .Net webservice that can be consumed with Visual studio the familliar way.
2
13597
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) { this.Url = url;
1
1411
by: TheDude5B | last post by:
Hi, I have the following code which accesses an XML document and then displays the document using XSL. ----------------------------------------------------------------------------------------------------------------------- Dim xmlDocument Dim xslDocument Dim path Dim XSLTemplate Dim proc Dim nodes
14
1669
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 changed it .. but I am getting some errorr ValidatorUpg.ValidatorUpg.CompareXMLFiles(string, string, System.Xml.XmlDocument, System.Xml.XmlDocument)' cannot be accessed with an instance reference; qualify it with a type name instead ...
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10490
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10243
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9078
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.