S
spasala
Hello All,
I have an xml element namely
<csharpAttr>"[DllImport("user32.dll", SetLastError=false,
ExactSpelling=false)]"</csharpAttr>
the value of tha element could be anything for example
<csharpAttr>"[Conditional("DEBUG"), Conditional("TEST1")]"
</csharpAttr>
now I want to create a schema for this "charpAttr" element .
So the idea is the value should always start with a "[" and end with
"]"
So how do I specify the
pattern value
in the following
<xs:simpleType name="charpAttrType">
<xs:restriction base="xs:string">
<xsattern value= ???????/>
</xs:restriction>
</xs:simpleType>
Or if any body could suggest an alternate way (probably a better way)
that would be awesome.
Thanks in advance
sP
I have an xml element namely
<csharpAttr>"[DllImport("user32.dll", SetLastError=false,
ExactSpelling=false)]"</csharpAttr>
the value of tha element could be anything for example
<csharpAttr>"[Conditional("DEBUG"), Conditional("TEST1")]"
</csharpAttr>
now I want to create a schema for this "charpAttr" element .
So the idea is the value should always start with a "[" and end with
"]"
So how do I specify the
pattern value
in the following
<xs:simpleType name="charpAttrType">
<xs:restriction base="xs:string">
<xsattern value= ???????/>
</xs:restriction>
</xs:simpleType>
Or if any body could suggest an alternate way (probably a better way)
that would be awesome.
Thanks in advance
sP