Re: Selective parsing of elements

Michael Kay (M.H.Kay@eng.icl.co.uk)
Fri, 23 Oct 1998 14:36:11 +0100


>I want to parse select XML tags, and pass the remaining ones 'as-is'. Is
>there a way, or is there a certain parser, that will allow me to
>'register', for example, the tags I'm interested in, and pass the rest as
>PCDATA? Is there anything wrong with this approach?
>
>I've looked at the SAXON library, but at first sight it's slightly
>overkill for my purpose.

Agreed, SAXON probably does a lot of things you don't need, but looking at
it the other way, it also makes it very easy to do the thing you are asking
for.

I'm sorry if I've made it too complicated, that's one thing I was always
trying to avoid, but creeping feature syndrome affects us all...

Mike Kay