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

Including entities file in an xml document

I'm writting xml documents in french language. So i need to use special
characters like é and à. For this purpose i use HTML standard entities
like é.
But when i open my xml documents with my xml viewer an XML Parsing
Error(undefined entity) occur. It seems to me quite normal as entity
like é are not part of xml standard.

I found on google a file called iso-lat1.ent (part of DocBook project)
which defined all entities i need.

But i don't know how to include this file in my xml documents.
Especially is there a command to import all entities from the file
rather than importing them one by one.

Thanks for help.
Jul 20 '05 #1
1 1688
In article <40***********************@news.free.fr>,
chak <cb*****@naema.org> wrote:
I found on google a file called iso-lat1.ent (part of DocBook project)
which defined all entities i need. But i don't know how to include this file in my xml documents.
Especially is there a command to import all entities from the file
rather than importing them one by one.


You could place a copy of the entity file in the same directory as your
document, then add it to your DTD like this:

<!ENTITY % lat1 SYSTEM "iso-lat1.ent">
%lat1;

If you don't have a DTD, you can just use the internal subset:

<!DOCTYPE whatever [
<!ENTITY % lat1 SYSTEM "iso-lat1.ent">
%lat1;
]>

Better, you can use a PUBLIC declaration, and then systems which support
XML catalogs and have a local copy will not have to fetch it, but you'll
have to find the public identifier yourself.

-- Richard
Jul 20 '05 #2

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

Similar topics

4
by: Peter C. Chapin | last post by:
I have a need to include Greek letters in some of my XML documents (the documents contain astronomical information and many stars are named using Greek letters). Following some earlier postings on...
0
by: Fernando Martins | last post by:
Hi all. I have a docbook document with some specific entities defined. The book is "spread" among several .xml compliant files. I use thoes files individually to seek extra information but I do...
1
by: Vineeth | last post by:
Hi, I am using xerces2.6.0 and am developing a program for converting an xml document to a text file. My program is extending the DefaultHandler. The first problem I am facing is that even...
10
by: Ragnar Heil | last post by:
Hi, I am receiving news from a press-agency in NITF-XML. Then I want to import them into my CMS using XML&SOAP. The import-tool runs fine if I have got an xml-document with real German special...
19
by: Ian | last post by:
I'm using the following meta tag with my documents: <meta http-equiv="Content-Type" content= "text/html; charset=us-ascii" /> and yet using character entities like &rsquo; and &mdash; It...
4
by: Prowler | last post by:
In the application we are currently building, we need to write positioning code on-the-fly, based upon the screen offset of the element in the AS/400 application which drives the Web app. The 400,...
3
by: Michel de Becdelièvre | last post by:
I have some *performance* trouble reading MathML files in my application (in ASP.Net). - I have small MathML files (2-3k) as input - as (almost) all MathML files these use entities. I have no...
20
by: Johan | last post by:
How can I include one XML file into another XML file (on the client side, in Firefox)? I think XInclude is just what I need, but Firefox doesn't support it:...
4
by: Paul Rubin | last post by:
I'm new to xml mongering so forgive me if there's an obvious well-known answer to this. It's not real obvious from the library documentation I've looked at so far. Basically I have to munch of a...
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...
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: 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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...
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...

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.