JiBX
  1. JiBX
  2. JIBX-381

Provide easy way of enabling schema validation when unmarshalling

    Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: JiBX 1.2.2
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      It's currently complicated to turn on schema validation in JiBX, involving the following procedure for input:

      Create an instance of javax.xml.stream.XMLInputFactory with an implementation which supports validation (such as the one supplied by Sun as part of their JDKs), then call setProperty(XMLInputFactory.IS_VALIDATING, Boolean.TRUE) and create an actual parser with a createXMLStreamReader() call. Once you have the validating parser for your input, you can use the org.jibx.runtime.impl.StAXReaderWrapper constructor to wrap this as an IXMLReader instance, which can then be set on your org.jibx.runtime.impl.UnmarshallingContext unmarshalling context instance.

      There should be an easier way of doing this.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Dennis Sosnoski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: