Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > BOOK: Beginning XML, 4th Ed ISBN: 978-0-470-11487-2
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 21st, 2007, 05:15 PM
Registered User
 
Join Date: Dec 2007
Location: Brighton, MA, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 5 "Try It Out", pgs. 149-50

[Note: I erroneously posted this topic earlier this week to the XML 3rd Edition forum.]

I'm working on the Chapter 5 "Try It Out" on pages 149-50, and keep getting the same error when I try to validate the xml file in Codeplot, though I've checked what I've written against what's in the book, and it seems to match. The error I'm getting is:

[Error] Document is invalid: no grammar found. Line 2, Column 6
[Error] Document root element "name", must match DOCTYPE root "null". Line 2, Column 6

Do you know why I'm getting this? The text of the xml doc I'm validating is:

<?xml version="1.0"?>
<name
   xmlns="http://www.example.com/name"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.example.com/name name5.xsd"
   title="Mr.">
      <first>John</first>
      <middle>Fitzgerald Johansen</middle>
      <last>Doe</last>
</name>

And the text of the .xsd file is:

<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:target="http://www.example.com/name"
targetNamespace="http://www.example.com/name" elementFormDefault="qualified">
   <element name="name">
      <complexType>
         <sequence>
            <element name="first" type="string"/>
            <element name="middle" type="string"/>
            <element name="last" type="string"/>
         </sequence>
         <attribute name="title" type="string"/>
      </complexType>
   </element>
</schema>

Thanks,
Peter Floyd
pfloyd@asp.md

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in "Try It Out", pages 149-150 pfloyd BOOK: Beginning XML 3rd Edition 0 December 18th, 2007 10:53 AM
Chap 3 , page 50 MacSr BOOK: Beginning VB.NET Databases 1 January 23rd, 2006 08:53 PM
errata chapter 5 pgs 164 & 165 wentz1 BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 August 25th, 2005 04:00 AM
SQL Help on Users and Authentication page 149 seanmayhew BOOK: ASP.NET Website Programming Problem-Design-Solution 1 May 26th, 2004 09:30 AM



All times are GMT -4. The time now is 08:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.