Question: I'm using XPATH 1.0 parsers alongside CLiXML in my JAVA project, I'm trying to setup a CLiXML constraint rules file.

I would like to show an error if there are duplicate element names under a specific child.

For example

```
<parentNode version="1">
    <childA version="1">
        <ignoredChild/>
    </childA>
    <childB version="1">
        <ignoredChild/>
    </childB>
    <childC version="4">
        <ignoredChild/>
    </childC>
    <childA version="2">
        <ignoredChild/>
    </childA>
    <childD version="6">
        <ignoredChild/>
    </childD>
</parentNode>

```

childA appears more than once, so I would show an error about this.

NOTE: I only want to 'check/count' the Element name, not the attributes inside or the children of the element.

The code inside my .clx rules file that I've tried is:

```
<forall var="elem1" in=".//parentNode/*">
    <equal op1="count(.//parentNode/$elem1)" op2="1"/>
</forall>

```

But that doesn't work, I get the error:

```
Caused by: class org.jaxen.saxpath.XPathSyntaxException: count(.//PLC-Mapping/*/$classCount: 23: Expected one of '.', '..', '@', '*', <QName>

```

As I want the code to check each child name and run another xPath query with the name of the child name - if the count is above 1 then it should give an error.

Any ideas?

Answer: 
define in the web configuration file:

```
<sessionstate 
      mode="inproc"
       cookieless="false" 
      timeout="20" 
     />

```
Seems like session timeout has a max of **24 hours**. Check this out <http://support.microsoft.com/kb/233477>

Set it to 24 hours or less and you will be fine.

**Also explained here:** <http://msdn.microsoft.com/en-us/library/ms525473(v=vs.90).aspx>

> 
> IIS 6.0: The minimum allowed value is
>  1 minute and the maximum is 1440
>  minutes.
> 
> 
>