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

retrieve an exception while parsing special characters

hi,

i want to parse a xml-file which has e.g.
the following tag.

<entity file="abc.wav" text="A B C" duration="400"/>

if it is defined like shown above everything works fine, what means,
that StartElement-method and the EndElement-method is called and
i can retrieve the parsed informations.

but if i change the line that special chars a in the text-element (here
a char #234 and a char #233 is used)
<entity file="abc.wav" text="í systém" duration="0"/>
then i get an access violation.

does anybody know what the reason could be ??
the exception happens in a library that i cannont debug!

thanx in advance for help

greets elmar

Jul 23 '05 #1
3 1457

hi,

i want to parse a xml-file which has e.g.
the following tag.

<entity file="abc.wav" text="A B C" duration="400"/>

if it is defined like shown above everything works fine, what means,
that StartElement-method and the EndElement-method is called and
i can retrieve the parsed informations.

but if i change the line that special chars a in the text-element (here
a char #234 and a char #233 is used)
<entity file="abc.wav" text="í systém" duration="0"/>
then i get an access violation.

does anybody know what the reason could be ??
the exception happens in a library that i cannont debug!

thanx in advance for help

greets elmar

I forgot an important information!!!!!!

I am working with the EXPAT-Parser !!!
Jul 23 '05 #2
Elmar wrote:
hi,

i want to parse a xml-file which has e.g.
the following tag.

<entity file="abc.wav" text="A B C" duration="400"/>

if it is defined like shown above everything works fine, what means,
that StartElement-method and the EndElement-method is called and
i can retrieve the parsed informations.

but if i change the line that special chars a in the text-element (here
a char #234 and a char #233 is used)
<entity file="abc.wav" text="í systém" duration="0"/>
then i get an access violation.

does anybody know what the reason could be ??
the exception happens in a library that i cannont debug!

thanx in advance for help

greets elmar


I forgot an important information!!!!!!

I am working with the EXPAT-Parser !!!


Then you should contact the people that made that parser
and tell them that they have a bug in it.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 23 '05 #3
Latin1 is not UTF8. It is possible your XML file is not UTF8 encoded.
On windows, notepad can be used to save a file as UTF8 (use save-as and
change the encoding).

Jul 23 '05 #4

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

Similar topics

6
by: Dario Di Bella | last post by:
Hi all, I hope someone can help me on this. I need to parse the following XML: .... <area name="promotore"> <item id="004" code="003" description="attivita promotore"> <!]> </item> </area>...
28
by: Fabian | last post by:
I use the following to parse the url var srch = window.location.search.substring(1); // then split srch at the ampersand: var parts = srch.split("&"); // write the parameters into the variables...
35
by: .:mmac:. | last post by:
I have a bunch of files (Playlist files for media player) and I am trying to create an automatically generated web page that includes the last 20 or 30 of these files. The files are created every...
6
by: Ali-R | last post by:
I'm using a .Net application to execute DTS packages within Sqlserver,I need to have very customizable and powerful Exception maangement systems which loggs different issues happend in the DTS...
17
by: Mark | last post by:
I must create a routine that finds tokens in small, arbitrary VB code snippets. For example, it might have to find all occurrences of {Formula} I was thinking that using regular expressions...
24
by: Marc Dubois | last post by:
hi, is it possible to parse an XML file in C so that i can fulfill these requirements : 1) replace all "<" and ">" signs inside the body of tag by a space, e.g. : Example 1: <fooblabla < bla...
3
by: yinglcs | last post by:
I want to keep track of the number of different exception happens in my python program: ErrorHash = {} try: # come code ... except Exception, e:
1
by: haijdp | last post by:
Hi, Can anyone help me on how to handle the special chars in response data from server side.I am using AJAX,I am parsing one large xml file in the javascript, which can have multiple specila chars...
6
by: rellaboyina | last post by:
Dear All, I am having some data which will be stored in XML format and this needs to be parsed using the parser module XML::Parser and XML::Parser::Expat. This data consists of some special...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.