Examples of startDocument()


Examples of org.eclipse.persistence.oxm.record.WriterRecord.startDocument()

            Node xmlDocument = objectToXMLNode(object, xmlDescriptor, isXMLRoot);
            writerRecord.setSession(session);
            if (isFragment()) {
                writerRecord.node(xmlDocument, xmlDescriptor.getNamespaceResolver());
            } else {
                writerRecord.startDocument(encoding, version);
                writerRecord.node(xmlDocument, writerRecord.getNamespaceResolver());
                writerRecord.endDocument();
            }
        } catch (XMLPlatformException e) {
            throw XMLMarshalException.marshalException(e);
View Full Code Here

Examples of org.exist.memtree.DocumentBuilderReceiver.startDocument()

                    item = (Item) child.getFirstChild();
                    if (type == Type.DOCUMENT) {
                        final NodeImpl n = (NodeImpl) item;
                        final DocumentBuilderReceiver receiver = new DocumentBuilderReceiver();
                        try {
                            receiver.startDocument();
                            n.getDocument().copyTo(n, receiver);
                            receiver.endDocument();
                        } catch (final SAXException e) {
                            throw new XPathException("Error while demarshalling node: " + e.getMessage(), e);
                        }
View Full Code Here

Examples of org.exist.memtree.MemTreeBuilder.startDocument()

    SVNStatusClient statusClient = manager.getStatusClient();
   
    SVNWCClient wcClient = manager.getWCClient();

    MemTreeBuilder builder = context.getDocumentBuilder();
        builder.startDocument();
        builder.startElement(new QName("status", null, null), null);
   
        try {
      statusClient.doStatus(
          new Resource(uri),
View Full Code Here

Examples of org.exist.memtree.SAXAdapter.startDocument()

            return Sequence.EMPTY_SEQUENCE;
        }

        final SAXAdapter adapter = new SAXAdapter(context);
        try {
            adapter.startDocument();
            index.toSAX(adapter);
            adapter.endDocument();
        } catch (final SAXException e) {
            throw new XPathException(this, "Error caught while retrieving statistics: " + e.getMessage(), e);
        }
View Full Code Here

Examples of org.exist.util.serializer.EXISerializer.startDocument()

      }
      else {
        exiSerializer = new EXISerializer(baos);
      }
      Item inputNode = args[0].itemAt(0);
      exiSerializer.startDocument();
          inputNode.toSAX(context.getBroker(), exiSerializer, new Properties());
          exiSerializer.endDocument();
          return BinaryValueFromInputStream.getInstance(context, new Base64BinaryValueType(), new ByteArrayInputStream(baos.toByteArray()));
    }
    catch(IOException ioex) {
View Full Code Here

Examples of org.exist.util.serializer.SAXSerializer.startDocument()

            int p = 0;
            if (queryHistory.size() > 20) {
                p = queryHistory.size() - 20;
            }
            final AttributesImpl attrs = new AttributesImpl();
            serializer.startDocument();
            serializer.startElement("", "history", "history", attrs);
            for(final ListIterator<String> i = queryHistory.listIterator(p); i.hasNext(); ) {
                serializer.startElement("", "query", "query", attrs);
                final String next = i.next();
                serializer.characters(next.toCharArray(), 0, next.length());
View Full Code Here

Examples of org.exolab.castor.xml.UnmarshalHandler.startDocument()

   
    Unmarshaller unmarshaller = new Unmarshaller(dataSource);
    UnmarshalHandler handler = unmarshaller.createHandler();
   
    try {
      handler.startDocument();
      handler.startElement("data-source", null);

      for (int i = 0; i < parameters.length; i++) {
         param = (Param) parameters[i];
         handler.startElement(param.getName(), null);
View Full Code Here

Examples of org.iso_relax.verifier.VerifierHandler.startDocument()

                  }
              }
          );
 
          VerifierHandler handler = verifier.getVerifierHandler();    
            handler.startDocument();
          invokeBody( new XMLOutput( handler ) );
            handler.endDocument();
            valid = handler.isValid();           
        }
        handleValid(valid);
View Full Code Here

Examples of org.jasig.portal.StructureAttributesIncorporationFilter.startDocument()

          // Incorporate channel registry document into userLayout if user is in the subscribe process
          if (action.equals("newChannel")) {
            Node channelRegistry = ChannelRegistryManager.getChannelRegistry(staticData.getPerson()).getDocumentElement();
            // start document manually
            saif.startDocument();
            // output layout
            ulm.getUserLayout(new ChannelSAXStreamFilter((ContentHandler)saif));
            emptytr.transform(new DOMSource(channelRegistry),new SAXResult(new ChannelSAXStreamFilter((ContentHandler)saif)));
            // end document manually
            saif.endDocument();
View Full Code Here

Examples of org.jdom.input.SAXHandler.startDocument()

      String name = (String) it.next();
      if (name.equals("complexResult")) {
    SAXEventBufferImpl myBuffer
        = (SAXEventBufferImpl)map.get(name);
    SAXHandler sh = new SAXHandler ();
    sh.startDocument();
    sh.startElement
        ("", "temporary-root", "temporary-root", new AttributesImpl());
    myBuffer.emit(sh, (LexicalHandler)sh);
    sh.endElement ("", "temporary-root", "temporary-root");
    sh.endDocument();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.