473,405 Members | 2,294 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,405 software developers and data experts.

How to identify the error with this XML/DTD pair?

Hello All.
I am trying to use an entity value defined in an external dtd within an XML file. This renders fine in Internet Explorer 8, but Firefox 3 & Google chrome report problems.

Can someone kindly spare a moment and help me please ?
XML.xml:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" standalone="no"?>
  2. <!DOCTYPE root SYSTEM "dtd.dtd">
  3. <root>
  4.     &myEnt;
  5. </root>
  6.  
dtd.dtd:
Expand|Select|Wrap|Line Numbers
  1. <!ENTITY myEnt "Parag Doke">
  2.  
Dec 3 '10 #1
4 2164
Dormilich
8,658 Expert Mod 8TB
it would help to know, what problems are reported …

if the one line you posted is all that is in the DTD, then your XML simply does not validate (missing root element definition)
Dec 3 '10 #2
Firefox says:
Expand|Select|Wrap|Line Numbers
  1. XML Parsing Error: undefined entity
  2. Location: <path to parent folder>/XML.xml
  3. Line Number 4, Column 5:
  4.     &myEnt;
  5. ----^
  6.  
Dec 3 '10 #4
Dormilich
8,658 Expert Mod 8TB
up to now, I have only used parameter entities …
Dec 3 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: SaCompGeek | last post by:
I have a class that defines a Key/Name value collection that i generated by and XML Element with multiple attributes. The attribute are used to create the collection of 'Binate' objects. This is...
4
by: MNC | last post by:
I'm using Access2002, and can't seem to get an updateable recordset going :-( What am I doing wrong, here's the code. The form's controls are not locked, the recordset type is Dynaset (changing...
10
by: WindAndWaves | last post by:
Hi Gurus Whenever I start making changes in VB (without having anything open), the first time after opening the application, i will get the following error: This will reset your project do you...
2
by: Steve Y. | last post by:
My Environment ..Net SDK 1.1 on remote Win2k Server Connecting with VS 2003 via FrontPage Extension Error "The web server reported the following error when attempting to create o open the Web...
0
by: santel | last post by:
Hi, I tried the below code to convert the sql table to xmlDocument. But it is giving error in doc.Load(reader) Could anyone please help me out. conn.Open(); string sql = "select...
1
by: quayum | last post by:
Hi I am using the AJAX to call a method on the server which sends a mail to the user. my code if(status == 200) is evaluating to false yet the mail is delivered. But because of the above...
1
by: rsivaraman | last post by:
Hello. I installed windows xp embedded tools and database. Installed discs containing sp1, sp2, FP2007 and then SP3 in the same order. After installing, I tried to run all the tools. Everything...
5
by: AccessBeetle | last post by:
There is an application created in Access 2003 and VBA. It is used by 18 different locations. 17 of them are running perfectly fine but one location has following problem: There is report called...
1
by: danalovesc | last post by:
those are the maps: multimap<SortKey,T> firstMap; multimap<SearchKey,pair<SortKey,T>*> secondMap; template <class T,class SortKey, class SearchKey> bool...
1
by: Eran Hefer | last post by:
Problem: User got an error massage when trying to load an InfoPath form: "This session has exceeded the amount of allowable resources" More Details: Check out the Event Viewer on the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.