Wrox Programmer Forums
|
BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2
This is the forum to discuss the Wrox book Beginning XML, 4th Edition by David Hunter, Jeff Rafter, Joe Fawcett, Eric van der Vlist, Danny Ayers, Jon Duckett, Andrew Watt, Linda McKinnon; ISBN: 9780470114872
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 20th, 2011, 06:23 PM
Registered User
 
Join Date: Dec 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem inserting entities into XML

Hi

Chapter 4 - DTDS's - "Try It Out - Making Contact, Part 4" - page 136

I have successfully run through the above exercise by downloading the code from the wrox.com website, however when I go to open either the contacts4.xml or contacts5.xml file in a web browser, it does not seem to be retrieving the entity data from the dtd files and inserting it into the XML document -

Using IE v9.08112.16421, the XML page loads, but the general entities are blank.

Using Firefox 8.0.1, I get the following error:
"XML Parsing Error: undefined entity
Location: file:///E:/SQL%20Server/Temp/XML/Chapter4/contacts4.xml
Line Number 3, Column 1:<contacts source="&source-text;" version="1.0">
^"

The XML files, the DTD files and all of the entity files being referenced are in the same folder, and I haven't changed anything in the code, so just curious as to what I might be doing wrong. The XML validates and is well formed.

Many thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Rename global entities in an XML Schema mphare XSLT 2 April 14th, 2010 05:05 PM
Problem with character entities mister_tea BOOK: Beginning HTML, XHTML, CSS, and JavaScript 2 April 6th, 2010 09:11 AM
example of Inserting and Retrieving data from xml hanusoft ASP.NET 1.x and 2.0 Application Design 1 September 26th, 2007 01:10 AM
Resolving entities when reading XML dmorin C# 0 September 25th, 2006 09:19 AM
Inserting data into a XML file zion99 ASP.NET 2.0 Basics 0 July 17th, 2006 09:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.