Examples of endDocument()


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

            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.encog.parse.tags.write.WriteXML.endDocument()

      xml.endTag();
    }

    xml.endTag();
    xml.endTag();
    xml.endDocument();

  }

  /**
   * Generate a table, in BIF format.
View Full Code Here

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

                        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);
                        }
                        item = (Item) receiver.getDocument();
                    }
View Full Code Here

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

          builder.characters(e1.getMessage());
          builder.endElement();
    }
   
        builder.endElement();
        builder.endDocument();

        return (NodeValue) builder.getDocument().getDocumentElement();
  }
 
    private static class AddStatusHandler implements ISVNStatusHandler {
View Full Code Here

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

        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);
        }
        final DocumentImpl doc = (DocumentImpl) adapter.getDocument();
        return (NodeImpl) doc.getFirstChild();
View Full Code Here

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

        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) {
      // TODO - test!
      throw new XPathException(this, ErrorCodes.FODC0002, ioex.getMessage());
View Full Code Here

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

                final String next = i.next();
                serializer.characters(next.toCharArray(), 0, next.length());
                serializer.endElement("", "query", "query");
            }
            serializer.endElement("", "history", "history");
            serializer.endDocument();
            writer.close();
            SerializerPool.getInstance().returnObject(serializer);
        } catch (final IOException e) {
            System.err.println("IO error while writing query history.");
        } catch (final SAXException e) {
View Full Code Here

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

         handler.characters(param.getValue().toCharArray(), 0, param.getValue().length());
         handler.endElement(param.getName());
      }

      handler.endElement("data-source");
      handler.endDocument();
    } catch (SAXException e) {
      _log.error ("Unable to parse <data-source> element.", e);
      throw new MappingException ("Unable to parse <data-source> element.", e);
    }
   
View Full Code Here

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

          );
 
          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.endDocument()

            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();
          } else {
              //if (action.equals("moveChannelHere"))
              //System.out.println(org.jasig.portal.utils.XML.serializeNode(userLayout));

              // Begin SAX chain
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.