Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 8th, 2006, 07:38 AM
yogaboy yogaboy is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Near London
Posts: 112 yogaboy User rank is Corporal (100 - 500 Reputation Level)yogaboy User rank is Corporal (100 - 500 Reputation Level)yogaboy User rank is Corporal (100 - 500 Reputation Level)yogaboy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 14 h 37 m 29 sec
Reputation Power: 5
XML Schema validation

Hi,

I wanted to use the Jabber vCard XML standard. They've put a DTD up here , but not an XSD, so I took the DTD and put it into XMLSpy and got it to make one for me.

The schema validates fine, until... I add a targetNamespace attribute. Any targetNamespace, from the letter "a" to a proper uri.

I really don't understand why this should happen, so if anyone has any clues or suggestions please let me know!

The XSD is in the .txt attachment.
Attached Files
File Type: txt xsd.txt (11.0 KB, 121 views)

Reply With Quote
  #2  
Old October 8th, 2006, 09:21 AM
yogaboy yogaboy is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: Near London
Posts: 112 yogaboy User rank is Corporal (100 - 500 Reputation Level)yogaboy User rank is Corporal (100 - 500 Reputation Level)yogaboy User rank is Corporal (100 - 500 Reputation Level)yogaboy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 14 h 37 m 29 sec
Reputation Power: 5
I've found the solution. To add a targetNamespace you also have to add another xlmns attribute.

So
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
becomes
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/vCard" xmlns="http://www.example.org/vCard">

I haven't seen this mentioned in any of the tutorials I've looked at, possibly it's something so obvious to most that it doesn't need to be mentioned!

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > XML Schema validation


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT