H
Hrvoje Somun
i am trying to use file on local computer as xsd, but my java program always
throws;
URI file:C:/data.xml
cvc-datatype-valid.1.2.1: 'C:\shemadata.xsd' is not a valid value for
'anyURI'.
only anyuri type i use in schema is in
<FirstTag xmlrp="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="shemadata.xsd"></FirstTag>
in shema
<xs:element name="FirstTag">
<xs:complexType>
<xs:sequence>
...
...
</xs:sequence>
<xs:attribute name="xmlrp" type="xs:anyURI" use="required"/> //
only anyURI
</xs:complexType>
</xs:element>
even if i change xmlrp to type string it wount validate right and throws
same message. Is it because 'C:\shemadata.xsd' is not of type anyURI ?
thnx
throws;
URI file:C:/data.xml
cvc-datatype-valid.1.2.1: 'C:\shemadata.xsd' is not a valid value for
'anyURI'.
only anyuri type i use in schema is in
<FirstTag xmlrp="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="shemadata.xsd"></FirstTag>
in shema
<xs:element name="FirstTag">
<xs:complexType>
<xs:sequence>
...
...
</xs:sequence>
<xs:attribute name="xmlrp" type="xs:anyURI" use="required"/> //
only anyURI
</xs:complexType>
</xs:element>
even if i change xmlrp to type string it wount validate right and throws
same message. Is it because 'C:\shemadata.xsd' is not of type anyURI ?
thnx