?
Solved

Error loading XML file (.Net) - Missing equals sign between attribute and attribute value

Posted on 2005-03-21
4
Medium Priority
?
3,331 Views
Last Modified: 2011-10-03
I've an application (XML Web Service) in VB.NET - it loads XML files generated by a Palm device.

It reads the file the following way:

filestreamSource = New System.IO.FileStream(MyTempPath, FileMode.Open, FileAccess.Read)
MyReader = New XmlTextReader(filestreamSource)
MyDataSet1.ReadXml(MyReader)
MyReader.Close()
filestreamSource.Close()

This works fine most of the times - but with a specific user I'm getting an error when trying to load the XML file....

When I try to open the file with Internet Explorer I get the following error:

"The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Missing equals sign between attribute and attribute value. Error processing resource 'file ...."
 
*****************

Here you can find the file with the error:
http://www.luismiguelgoncalves.com/debug/witherror.xml

And here a file with the same format (different data) that works fine without any problem:
http://www.luismiguelgoncalves.com/debug/withouterror.xml

Can you please make me understand what's causing the error?

Thanks and regards.
Miguel
0
Comment
Question by:LMGONCA
  • 3
4 Comments
 
LVL 23

Expert Comment

by:b1xml2
ID: 13590285
yes, but you havent posted the XSLT file!!
0
 

Author Comment

by:LMGONCA
ID: 13590296
Don't have any!
0
 
LVL 23

Accepted Solution

by:
b1xml2 earned 1500 total points
ID: 13590845
It is generating error at this point:

<Description>
RF Vim casa cliente,ninguem atendeu,toquei na porta da vizinha,atendeu-me um senhor que me disse que cliente morreu a cerca de 3meses,era viuvo<nao tinha filhos,nem parentes directos e mais informacoes nao soube dar.Sugiro Pci.Motivo:Cliente faleceu.
</Description>


You must escape the < as &lt; or enclose content inside a CDATA Section like so:
<Description>
RF Vim casa cliente,ninguem atendeu,toquei na porta da vizinha,atendeu-me um senhor que me disse que cliente morreu a cerca de 3meses,era viuvo&lt;nao tinha filhos,nem parentes directos e mais informacoes nao soube dar.Sugiro Pci.Motivo:Cliente faleceu.
</Description>


0
 
LVL 23

Expert Comment

by:b1xml2
ID: 13590847
Your xml document is incorrect.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question