|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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! ![]() |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > XML Schema validation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|