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>";



Reply via email to