Package com.bea.xml.stream.events

Examples of com.bea.xml.stream.events.DTDEvent


  public ProcessingInstruction createProcessingInstruction(String target, String data) {
    return new ProcessingInstructionEvent(target,data);
  }

  public DTD createDTD(String dtd) {
    return new DTDEvent(dtd);
  }
View Full Code Here


       *    (external unparsed?) entities contained in the DTD, so can not
       *    use the constructor that just takes String..
       */
      if (reader instanceof MXParser) {
          MXParser mxp = (MXParser) reader;
          DTDEvent evt = new DTDEvent(reader.getText());
          evt.setNotations((List) mxp.getProperty(MXParser.FEATURE_STAX_NOTATIONS));
          evt.setEntities((List) mxp.getProperty(MXParser.FEATURE_STAX_ENTITIES));
          return evt;
      }

      // Blah. Using some other reader...
      return factory.createDTD(reader.getText());
View Full Code Here

TOP

Related Classes of com.bea.xml.stream.events.DTDEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.