An XML semantic module has been long planned (and existed in earlier
betas).
The problem is if we do XPath conditions, while Jaxen(.org) can
handle most any DOM, it has to know what kind of DOM you are using.
Ideally, I'd want all of these to work:
assertObject( domDoc )
assertObject( dom4jDoc )
assertObject( jdomDoc )
assertObject( xomDoc )
assertObject( javabean )
-Bob
On Nov 7, 2005, at 9:42 AM, Karr, David wrote:
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]>