Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1479

DOM(Attr/Element) PSVI type info interface isSupported/getInterface

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • None
    • DOM
    • None

    Description

      in xercesc/dom/impl/DOM(Attr/ElementNS)Impl.cpp queries for the "DOMPSVITypeInfo" feature interface are processed by returning the proper const xercesc::PSVIItem*.

      To check interface existence the coresponding call to DOM(Attr/ElementNS)Impl::isSupported("+DOMPSVITypeInfo", NULL) should return true, which is actually returning false, because calls are redirected to xercesc::DOMImplementation::hasFeature.

      note the requirement of the "+" before the "DOMPSVITypeInfo" in the call to DOM(Attr/ElementNS)Impl::isSupported("+DOMPSVITypeInfo", ...) which is required because xercesc::PSVIItem doesn't implement the xercesc::DOMNode interface as described in DOM3->Core->DOM Features.
      calls to DOM(Attr/ElementNS)Impl::isSupported("DOMPSVITypeInfo", ...) without "+" should continue returning false;

      Attachments

        Activity

          People

            amassari Alberto Massari
            ts@edvwl.de Tobias Schuette
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: