hi allan please remember to prefix with [digester]. most folks use mail filters and this thread is in danger of getting lost...
i'd strongly suggest changing the name of this thread as soon as possible but here something to start you off: there is no answer as to whether you should set namespace on or off in this case. it's a tradeoff and the right trade depends on the particulars of the case. see http://jakarta.apache.org/commons/digester/apidocs/org/apache/commons/digester/package-summary.html#doc.Namespace for more information. - robert On Thu, 2005-02-17 at 20:51, Allan Axon wrote: > I'm trying to use the digester with a rules.xml file. The xml file I am > parsing looks like this: > > <?xml version="1.0" encoding="ISO-8859-1" ?> > <SOAP-ENV:Envelope xmlns:SOAP-ENV ... > > <SOAP-ENV:Body> > <Ob xmlns:obns=...> > <ObProfile> > <ObPanel att1=...> > .... > </Ob> > </SOAP-ENV:Body> > </SOAP-ENV:Enveloper> > > My patterns look like this "SOAP-ENV:Envelope/SOAP:Body/Oblix/ObProfile" > when digester.setNamesspaceAware(false). Is this the correct pattern? > > Could I use the obns with digester.setNamespaceAware(true) and > digester.setRuleNamespaceURI(obnsURI) and use a pattern like: > Ob/Obprofile/ObPanel even though none to the elements in the body have > <obns:Element> forms. Does this mean the obns namespace is not being > used or that it applies to everything below the Ob node? > > When I run my digester I'm trying to test it by running a public method > for the ObProfile object and I get a NullPointerException which I assume > means that my patterns are not matching correctly in the xml file. > > Thanks, > Allan Axon > NC DENR --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
