Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Why am I getting an attribute error?


Why am I getting an attribute error?

Reply
  #1 (permalink)  
Old 08-26-11, 10:46 AM
msummons76 msummons76 is offline
New Member
 
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Why am I getting an attribute error?

Hello All,I'm fairly new to XML and trying to create a schema to set up the format of a table. The reference to the schema seems to work (which was a challenge in itself), but the schema itself gets errors when trying to open the XML file (using MS EXCEL). I have been able to resolve the errors as I see them but am getting an error in regards to the attributes. For some reason they are not being picked up in the XSD code and can not figure it out. I believe it may be a case of certain lines not being where they should but coming to you all as a second pair of eyes to see if my coding is correct. Schema code is below:

Quote:
<?xml version="1.0" encoding="utf-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<element name="table"/>
<complexType>
<sequence>
<element name="song"/>
</sequence>
</complexType>
<complexType name="songType">
<sequence>
<element name="artist"/>
<element name="length" type="dateTime"/>
<element name="year" type="integer"/>
<element name="album" type="string"/>
</sequence>
<attribute name="name" type="string"/>
</complexType>
</element>
</schema>
Any help would be greatly appreciated!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax error. operation error jayhighway Visual Basic 2 10-01-11 06:04 AM
C++ and MSSQL tutorials? scott2500uk C/C++ 8 05-11-09 02:33 AM
[SOLVED] 500 Internal Server Error - Please help Dawn Perl 15 07-08-08 11:08 AM
Syntax Error Nikas Database 4 05-15-08 10:48 AM
I most definately suggest DevelopingCentral.com For Any Website Design/Development! Salty777 General Advertisements 2 10-01-04 04:27 AM


All times are GMT -5. The time now is 09:18 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.