views:

133

answers:

1

In file Atomic.aiml, part of the annotated ALICE AIML files, there are a lot of categories like this:

<category>
    <pattern>ANSWER MY QUESTION</pattern>
    <template>
        Please try asking 
        <set name="it">your question</set> 
        another way.
    </template>   
</category>

This code isn't valid according to the AIML XSD; the validator says that No character data is allowed in content model (regarding the your question character data inside the set element). If I delete your question the error disappears, but then "it" wouldn't be defined correctly.

How do I fix the code above so it passes the validation ?

A: 

Which Validator are you using because the following complete file validates according to Xerces?

<aiml xmlns="http://alicebot.org/2001/AIML-1.0.1" version="1.0.1">
  <category>
    <pattern>ANSWER MY QUESTION</pattern>
    <template>
       Please try asking
       <set name="it">your question</set>
       another way.
    </template>
  </category>
</aiml>
ashirley
I'm using XMLCopyEditor 1.2.0.1. Thanks for your answer, I'll try another editor / validator.
muriloq