?
Solved

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

Posted on 2005-03-21
4
Medium Priority
?
3,187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 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