Selective parsing of elements

Michael Kay M.H.Kay at eng.icl.co.uk
Fri Oct 23 15:40:49 BST 1998


>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


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list