XML Validate problem?
Hi,
I have an XML Schema and an XML document based on that schema. When I open
these in XMLSpy and perform validation checks it all validates ok.
If I open the files in Idea and try to validate my XML document, Idea shows
an error message:
"Error: (3, 63) White spaces are required between publicid and systemid."
This appears to be talking about a problem in the Schema? This is line 3 of
my Schema:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.smart421.com" targetNamespace="http://www.smart421.com"
elementFormDefault="qualified" attributeFormDefault="unqualified"
version="1.0">
When I open the Schema it does indeed show the text around column 63 of line
3, in red. This is the xmlns="http://www.smart421.com" part but I cannot
figure out why it has a problem with this? It suggests that I fetch a
resource from http://www.smart421.com but this doesn't do anything as there
isn't anything there to fetch? It is just a namespace? Any Schema experts
out there care to shed some light on this problem?
Also, why does this validate ok in XMLSpy but not in Idea?
Thanks
Scott
Please sign in to leave a comment.
Hi,
Add request to JIRA with example.
Sophisticated schema checks comes from using Xerces validator.
Scott Curtis wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"