|
Title: xsd:ID validation problem Post by: TomK on June 18, 2008, 01:04:34 pm soapUI complains that an xsd:ID field with value pattern nnnnnnnA is not valid. Would anyone know why that is?
Title: Re: xsd:ID validation problem Post by: omatzura on June 18, 2008, 08:39:59 pm Hi!
that sounds strange.. can you show the complete error message and/or corresponding message and wsdl? regards, /Ole eviware.com Title: Re: xsd:ID validation problem Post by: TomK on June 19, 2008, 01:03:56 pm This is the error message accompanied by failed schema compliance:
line 6: string value '12345678A' does not match pattern for xs:ID And this is an excerpt of the domain schema where the relevant field is defined: ... <xsd:element name="Supporter" type="dom:SupporterType"/> <xsd:complexType name="SupporterType"> <xsd:sequence> <xsd:element name="srn" type="xsd:ID"/> <xsd:element name="title" type="xsd:string" minOccurs="0"/> ... Title: Re: xsd:ID validation problem Post by: omatzura on June 19, 2008, 11:17:24 pm Hi,
as far as I understand from the XML Schema spec, an xs:ID is basicallly an NCName, which is defined as NCName ::= (Letter | '_') (NCNameChar)* (see http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-NCName) so it should basically start with either a letter or an underscore.. !? regards, /Ole eviware.com Title: Re: xsd:ID validation problem Post by: TomK on June 24, 2008, 11:07:04 am I do apologise, I should have picked up on that.
Thank you very much for helping me out. |