473,804 Members | 3,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Document load problem with entities

When I load a document, it have text "ñ" I recibe an error:
Reference to undeclared entity, 'Ntilde'
"Ntilde" is an entity of iso-8859-1, why load method can't load it. How can
I refer entities ISO-8859-1?
Please help me...
Nov 12 '05 #1
3 2903
Miquel Labòria wrote:
When I load a document, it have text "ñ" I recibe an error:
Reference to undeclared entity, 'Ntilde'
"Ntilde" is an entity of iso-8859-1, why load method can't load it.
There is only 5 predefined entities in XML - <, >, ', "
and &. All other must be properly defined in DTD.
How can
I refer entities ISO-8859-1?

1. Inline declaration:

<?xml version="1.0"?>
<!DOCTYPE foo [
<!ENTITY copy "©">
]>
<foo>&copy; Foo corp.</foo>

2. External declaration (the whole set of HTML latin1 entities):

<!DOCTYPE foo [
<!ENTITY % HTMLlat1 SYSTEM
"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
%HTMLlat1;
]>
<foo>&copy; Foo corp.</foo>

--
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog
Nov 12 '05 #2
I do that and it works, but the problem is when I tray to validate de
file with a external XSD, it says all the elements are not declared...

The other problem was the files are build for third persons, is there
other options for add entities and it no affect to xml?

thank you

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
Miquel Laboria wrote:
I do that and it works, but the problem is when I tray to validate de
file with a external XSD, it says all the elements are not declared... When validating, set validation type to ValidationType. Schema.
The other problem was the files are build for third persons, is there
other options for add entities and it no affect to xml?

It's not clear to me what do you mean. The only way to use entities
(except five predefined) is to declare them in DTD. Full stop.
--
Oleg Tkachenko
XML Insider
http://www.tkachenko.com/blog
Nov 12 '05 #4

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

Similar topics

7
12305
by: Robert Oschler | last post by:
Is there a module/function to remove all the HTML entities from an HTML document (e.g. - &nbsp, &amp, &apos, etc.)? If not I'll just write one myself but I figured I'd save myself some time. Thanks, -- Robert
1
1731
by: chak | last post by:
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.
3
1430
by: annoyed tuna | last post by:
I was wondering if someone could help me out. I'm trying to perform an XSL transformation on an XML document that uses entities. While I can do XSLT on a file without entities, it all falls apart when I try and add an entity. Here are my files... -----TEST.XML------ <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="test.xsl"?> <!DOCTYPE document >
4
11766
by: Geoff Wilkins | last post by:
I must confess I only come here when I have a problem - so my apologies if this has been raised before: Using my IE v.6 browser, document.write doesn't convert HTML entities (e.g. &apos;, &amp;) to the appropriate character (though NS 6.2 works fine). Obviously I can get round this for particular entities by writing some code to do the conversion before using document.write - but I need a more general solution that will catch any of the...
4
2955
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, like DOS, uses memory-mapped display, two bytes per character (one char byte and one attribute byte). We can get the screen offset allright, and I've written a javascript which does the math to convert the offset into row/col (i.e. left, top)...
1
1241
by: Kevin | last post by:
I have the following Xml document (see end of post) with many external resources that need to get resolved. When I "view" the Xml document in Internet Explorer (Windows XP SP2, IE 6.0.2900) all of the external resources and namespaces are resolved properly. However, when trying to load the document in an XmlDocument object in .NET 1.1.4322, I receive the following error: Prefixes beginning with "xml" (regardless of whether the...
4
3222
by: ChillyRoll | last post by:
Hello guys, I am looking for a parser in PHP that can return all the attributes of XML entities. I know how to read the XML Entities, but I have got a problem with reading attributes. So I will appreciate if you could give a parser that can return all the Entities and Attributes of respective entities as an array. For e.g.: <?xml version="1.0" ?>
4
5687
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello, I have a list of entities (with properties Key and Description). Which is the best manner of load dropdownlist with this list ? Thanks in advance -- http://www.alhambra-eidos.es/web2005/index.html www.kiquenet.net
2
2530
by: Michael Bray | last post by:
With the recent release of EF I've decided to dig into it a bit more than I did before... the question I'm specifically interested in, but haven't been able to find a resource to answer it is... when using Table-per-Type with inherited entities, is it possible to lazy load the base classes? For example, if I have an entity called "Person" and an entity called "Employee" and (obviously) Employee inherits from Person, is it possible to...
0
9711
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
9591
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
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10087
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9166
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
6861
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();...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4306
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
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.