You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Christian Geuer-Pollmann <ma...@nue.et-inf.uni-siegen.de> on 2001/07/19 18:20:50 UTC

How to catch Elements with a particular local name

Hi,

How do I catch Elements with a particular local name, regardless of the 
used namespace:

I want to catch all included Elements, but some are in a defaulted 
namespace>

      String input = ""
         + "<included xmlns:ietf='http://www.ietf.org'>"
         + "<notIncluded xmlns:ietf='http://www.ietf.org' >"
         + "<notIncluded xmlns:ietf='http://www.ietf.org' >"
         + "<included    xmlns='http://www.ietf.org'>"
         + "<included    >"
         + "<notIncluded xmlns='http://www.ietf.org'>"
         + "<notIncluded >"
         + "<notIncluded xmlns:ietd=\"http://www\">"
         + "<notIncluded >"
         + "<notIncluded xmlns='http://www.ietf.org'>"
         + "<notIncluded >"
         + "<notIncluded >"
         + "<included    xmlns:ietf='http://www.ietf.org'/>"
         + "</notIncluded>"
         + "</notIncluded>"
         + "</notIncluded>"
         + "</notIncluded>"
         + "</notIncluded>"
         + "</notIncluded>"
         + "</notIncluded>"
         + "</included>"
         + "</included>"
         + "</notIncluded>"
         + "</notIncluded>"
         + "</included>";