Hi Folks,
I am trying to implement a script where I want to check if the input value has date string in it or not. For example:

<ota:Caution ID="Alternative" Type="PackageDetail">Room</ota:Caution>

And

<ota:Caution ID="Alternative" Type="PackageDetail">2011-11-12</ota:Caution>

In the first example, the Caution element has value as "Room", which is not a date, hence the method should return false, otherwise true, as in case of example 2nd.

Any help please?

only with schema you can get information about the Node
when xml ist not valid all agains schema many programming language
throw/catch the exeception

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.