Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 August 21st, 2004, 03:03 PM
Authorized User
Join Date: Jul 2003
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to brettdavis4
Default Reading XML in ASP.net

I am making a small guestbook application using ASP.net and XML. I can write to it fine. But I get an error when I try to read the file.

This is the error that I get:

The schema namespace is invalid. Please use this one instead: http://www.w3.org/2001/XMLSchema.

This is my XML file:

<Guests xmlns="http://tempuri.org/guest.xs">
    <date>8/15/2004 10:32:09 PM</date>
  <xs:schema id="Guests" targetNamespace="http://tempuri.org/guest.xs" xmlns:mstns="http://tempuri.org/guest.xsd" xmlns="http://tempuri.org/guest.xs" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
    <xs:element name="Guests" msdata:IsDataSet="true" msdata:EnforceConstraints="False">
        <xs:choice maxOccurs="unbounded">
          <xs:element name="guest">
                <xs:element name="name" type="xs:string" minOccurs="0" />
                <xs:element name="email" type="xs:string" minOccurs="0" />
                <xs:element name="website" type="xs:string" minOccurs="0" />
                <xs:element name="date" type="xs:string" minOccurs="0" />
                <xs:element name="comments" type="xs:string" minOccurs="0" />
                <xs:element name="relation" type="xs:string" minOccurs="0" />

Please help me out.



Reply With Quote
  #2 (permalink)  
Old August 22nd, 2004, 08:13 PM
Friend of Wrox
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts


Do you have the XML and schema file in the same file?

Reply With Quote

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
Reading XML through ASP jeffm_22 Classic ASP XML 3 June 11th, 2010 07:02 AM
Reading XML file using ASP itHighway XSLT 2 April 29th, 2006 04:52 AM
Reading an XML post in an ASP.NET web site spudgun2005 ASP.NET 1.0 and 1.1 Basics 0 November 3rd, 2005 05:40 PM
Reading XML from ASP texasraven Classic ASP XML 2 February 26th, 2004 03:26 PM
Reading XML using VB.NET juice VB.NET 1 July 16th, 2003 03:45 PM

All times are GMT -4. The time now is 12:53 AM.

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