[rules-users] Solution for reasoning over XML?

FrankVhh frank.vanhoenshoven at agserv.eu
Fri Jan 11 06:29:52 EST 2013


With Wolfgang's approach, your patterns looking like:

XmlElement(name="SomeClass",value="foo",attribute["myAttr"] == bar)

Would turn into:

SomeClass(value == "foo", myAttr == "bar")

Without having any numbers, we can still safely say that the performance
improvement that you should get from using the pojo's, especially with "big"
files, should be somewhere in between "quite considerable" and "huge".

Out of curiosity:
 A) Do you also call Modify or Update in your THEN clause?
 B) What does this DSL phrase resolve to?

An XML element exists
- named someName with a value of
- at path /some/xpathlike/path with a value in "someVal","someOtherVal" 

Regards,
Frank





--
View this message in context: http://drools.46999.n3.nabble.com/Solution-for-reasoning-over-XML-tp4021454p4021462.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list