I just downloaded and installed an eval copy of xmlspy.
I put the following code snippets into two files, checked that they
validated with wrox.validate then loaded into xmlspy and it works and
validates just fine:
file "ip.xml"
<?xml version="1.0"?>
<IPtest xmlns

si="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ip.xsd">
<IP>192.168.255.1</IP>
</IPtest>
file "ip.xsd"
<?xml version="1.0"?>
<xsd:schema xmlns

sd="http://www.w3.org/2001/XMLSchema">
<xsd:simpleType name="IPType">
<xsd:restriction base="xsd:string">
<xsd

attern
value="(([1-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([1-9]?[0-9]|1[0-
9][0-9]|2[0-4][0-9]|25[0-5])"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="IPtest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="IP" type="IPType" maxOccurs="unbounded">
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
I'm using XMLSPY on windows 2000 sp2, it seems to be using the xmlspy
internal validator and is working just fine.
I think you need to check either your syntax (it won't work with spaces
within the ip , or before or after and also won't work if you leave spaces
around the | in the pattern but as I have it above (like your original but
without the spaces) it validates.
HTH,
Johnny
"UndoMiel" <> wrote in message
news:ItLQc.193$...
> Hi,
>
> I just used XMLSpy and the Topologi validator to validate the XML
> document...
>
> I've also tried another regular expression cause i couldnt get the the
other
> one working... Here it comes:
>
> <xsd:restriction base="xsd:string">
>
> <xsd
attern
>
value="(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-
>
5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0
> -9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1
]{
> 1 }[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])"/>
>
> </xsd:restriction>
>
> It's a bit longer and complicated but it worked fine....
>
> Thanks for ur time guys...
>
>
> "Johnny Kent" <> wrote in message
> news:ZBEQc.10034$Uh.655@fed1read02...
> >
> > "Richard Tobin" <> wrote in message
> > news:cete5q$kbu$...
> > > In article <uDiQc.6675$Uh.4292@fed1read02>,
> > > Johnny Kent <> wrote:
> > >
> > > >this
> > > >[1-9]?[0-9]|1[0-9][0-9]
> > > >
> > > >is not the same as this
> > > >1[0-9][0-9]|[1-9]?[0-9]
> > >
> > > It is, according to the XML Schema specification, and other regular
> > > expression languages I'm familiar with.
> >
> > Agreed.
> > Sorry, instead of "(Despite what you'd think)" I should have said
> "contrary
> > to the rules of regular expressions"
> > in my post.
> >
> >
> > >
> > > The operator | binds less tightly than any other operator, including
> > > concatenation.
> > >
> > > Which strings did the tester give different results for?
> >
> > try entering 199 using the patterns above,
> > none of the 3 browsers I tried (although 2 are really mozilla though
they
> > don't act the same) match 199
> > using the first pattern [1-9]?[0-9]|1[0-9][0-9]
> > but all 3 matched 199
> > using the second pattern 1[0-9][0-9]|[1-9]?[0-9]
> >
> > >And what browser
> > > were you using (it tests the browser's Javascript regular
expressions).
> >
> > Same result for both IE5, Mozilla (1.7) and Firefox(0.8.0+)
> > Guess the tester must be what's bad 'cos it sure ought to work both
ways.
> >
> >
> >
> > Looks like the OP has moved on and left us to keep this alive... 
> >
> >
> >
> >
>
>