P
Peter
Hi,
I think the XML validator in VB is screwing up somehow. Not sure what the
problem is. I have a line in an XML file that reads:
<PXPPaperColor color="ff928a" name="Cherry"></PXPPaperColor>
The XSD statements corresponding to the "color" attribute are:
<xs:attribute name="color" type="hexColor" use="required" />
and
<xs:simpleType name="hexColor">
<xs:restriction base="xs:string">
<xsattern value="[0-9a-f]^6" />
</xs:restriction>
When I validate this using the XML menu, I get an error at the position of
that PXPPaperColor color sttribute: "The 'color' attribute has an invalid
value according to its data type."...
No, it doesn't. I can even do a search in the XML file using the regular
expression [0-9a-f]^6 and it finds the value of my color attribute. What's
going on here? Why is the XML validator missing that?
I think the XML validator in VB is screwing up somehow. Not sure what the
problem is. I have a line in an XML file that reads:
<PXPPaperColor color="ff928a" name="Cherry"></PXPPaperColor>
The XSD statements corresponding to the "color" attribute are:
<xs:attribute name="color" type="hexColor" use="required" />
and
<xs:simpleType name="hexColor">
<xs:restriction base="xs:string">
<xsattern value="[0-9a-f]^6" />
</xs:restriction>
When I validate this using the XML menu, I get an error at the position of
that PXPPaperColor color sttribute: "The 'color' attribute has an invalid
value according to its data type."...
No, it doesn't. I can even do a search in the XML file using the regular
expression [0-9a-f]^6 and it finds the value of my color attribute. What's
going on here? Why is the XML validator missing that?