David
Thanks for your response, if I went this route I could use XQuery or
XPath which is great but how can I create a rule that iterates through a
series of repeating elements? Say a number of order lines and applies
the rules to each instance.
Martyn

-----Original Message-----
From: Karr, David [mailto:[EMAIL PROTECTED] 
Sent: 07 November 2005 14:43
To: [email protected]
Subject: [drools-user] RE: [spam]::[drools-user] Applying rules to an
xml document

I'd also like to hear opinions about this, but you might consider the
possibility of using a binding framework like XMLBeans, so your
conditions and actions can just use plain Java code.

        -----Original Message-----
        From: Martyn Bedford
[mailto:[EMAIL PROTECTED] 
        Sent: Monday, November 07, 2005 5:33 AM
        To: [email protected]
        Subject: [spam]::[drools-user] Applying rules to an xml document
        
        

        I would like to achieve the following

        Assert a single xml document to working memory and fire a rule
base against the doc, the rule base will consist of a number of rules
that govern the behaviour of different parts of the doc.

        Can anyone give me some pointers on how I should assert the doc
to working memory, i.e. is it a good idea to assert a single fact or
break the xml doc down into a number of separate facts; and how I target
individual elements of the doc, I would naturally lean towards using
xpath to address specific elements of the doc.

        Martyn

         

 <http://www.greenhatconsulting.com/>
<http://www.greenhatconsulting.com> 

Martyn Bedford

Head of Solutions Practice

Green Hat
107-111 Fleet Street
London
EC4A 2AB

Tel: +44 20 7936 9303 
Fax: +44 (0) 20 7936 9243 
Mobile: 0777 585 2584 

www.greenhatconsulting.com <http://www.greenhatconsulting.com> 

<http://www.greenhatconsulting.com/emailfooter/index.html>
<http://www.greenhatconsulting.com/emailfooter/index.html>
<http://www.greenhatconsulting.com/emailfooter/index.html>
<http://www.greenhatconsulting.com/emailfooter/index.html> 

Registered in England and Wales as company number 3395844 and having its
registered office at Lynton House, 7-12 Tavistock Square, London, WC1H
9LY. The information in this internet E-mail is confidential and is
intended solely for the addressee. Unless you are the named addressee
(or authorised to receive it for the addressee) you may not copy or use
it, or disclose it to anyone else. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
Green Hat Consulting Ltd. If you are not the intended recipient please
contact [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

         


Reply via email to