Uploaded image for project: 'WS-Commons'
  1. WS-Commons
  2. WSCOMMONS-520

Add a setEntityResolver() to be used in XmlSchemaCollection.read

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • XmlSchema 1.4.4
    • XmlSchema 1.4.7
    • XmlSchema
    • None

    Description

      XmlSchema read(final InputSource inputSource, ValidationEventHandler veh,
      TargetNamespaceValidator namespaceValidator) {
      try

      { DocumentBuilderFactory docFac = DocumentBuilderFactory.newInstance(); docFac.setNamespaceAware(true); final DocumentBuilder builder = docFac.newDocumentBuilder(); /* specify ER on doc builder */ if (entityResolver != null) builder.setEntityResolver(entityResolver); Document doc = null; doc = parse_doPriv(inputSource, builder, doc); return read(doc, inputSource.getSystemId(), veh, namespaceValidator); }

      catch (ParserConfigurationException e)

      { throw new XmlSchemaException(e.getMessage()); } catch (IOException e) { throw new XmlSchemaException(e.getMessage()); }

      catch (SAXException e)

      { throw new XmlSchemaException(e.getMessage()); }

      }

      Attachments

        1. WSCOMMONS-520.patch
          2 kB
          Brian McDonald

        Activity

          People

            Unassigned Unassigned
            brianitko Brian McDonald
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified