Hello,

I have a following situation using Digester. There is an XML file with two namespaces, e.g.:
<s:search>
<f:form>
<f:field />
<f:field />
</f:form>
</s:search>


I have such RuleSet with correct namespace for prefix "f:".
  digester.addFactoryCreate("*/form", new FormCreator());
  digester.addFactoryCreate("*/field", new FieldCreator());

Such wildcard matching doesn't match "field" element unless I specify it together with "form" element like this:
digester.addFactoryCreate("*/form", new FormCreator());
digester.addFactoryCreate("*/form/field", new FieldCreator());


There was one mail on 18 Sep 2003 explaining that:
------------------
digester.setNamespaceUri("http://acme.com";;);
digester.addObjectCreate("foo/bar/baz", ...)

means that the pattern will match:
* a baz element in the acme.com namespace ONLY, when inside
* a bar element in any namespace or no namespace, when inside
* a foo element in any namespace or no namespace.
------------------

So if it is like this, what is wrong in my case?

BTW, I use digester 1.5.

Thanks a lot!
Vilmantas


-- Vilmantas Baranauskas Phone: +49-711/13353-47 FAX: +49-711/1335353 D A N E T GmbH, Waldburgstrasse 17 - 19, D-70563 Stuttgart Email: [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to