Examples of startDocument()


Examples of org.codehaus.plexus.util.xml.pull.MXSerializer.startDocument()

    {
        XmlSerializer serializer = new MXSerializer();
        serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", "  " );
        serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" );
        serializer.setOutput( writer );
        serializer.startDocument( bobberArchetype.getModelEncoding(), null );
        writeBobberArchetype( bobberArchetype, "archetype", serializer );
        serializer.endDocument();
    } //-- void write(Writer, BobberArchetype)

    /**
 
View Full Code Here

Examples of org.codehaus.plexus.util.xml.pull.XmlSerializer.startDocument()

    {
        XmlSerializer serializer = new MXSerializer();
        serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", "  " );
        serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" );
        serializer.setOutput( writer );
        serializer.startDocument( bobberArchetype.getModelEncoding(), null );
        writeBobberArchetype( bobberArchetype, "archetype", serializer );
        serializer.endDocument();
    } //-- void write(Writer, BobberArchetype)

    /**
 
View Full Code Here

Examples of org.databene.commons.xml.SimpleXMLWriter.startDocument()

  public int createDBSanityChecksFor(SchemaChange schemaChange, File checksFile) {
    try {
      OutputStream out = new BufferedOutputStream(new FileOutputStream(checksFile));
      SimpleXMLWriter writer = new SimpleXMLWriter(out, Encodings.UTF_8, true);
      writer.startDocument();
      writer.startElement("dbsanity");
      int checkCount = process(schemaChange, writer);
      writer.endElement("dbsanity");
      writer.endDocument();
      writer.close();
View Full Code Here

Examples of org.dom4j.io.SAXContentHandler.startDocument()

        JellyContext context = parser.getContext();
       
        SAXContentHandler contentHandler = new SAXContentHandler();
        XMLOutput output = new XMLOutput( contentHandler );
       
        contentHandler.startDocument();
        script.run(context, output);
        contentHandler.endDocument();
       
        return contentHandler.getDocument();
    }
View Full Code Here

Examples of org.dom4j.io.XMLWriter.startDocument()

            OutputFormat format = OutputFormat.createPrettyPrint();
            format.setExpandEmptyElements(false);
            xml = new XMLWriter(out, format);

            xml.startDocument();

            xml.startDTD("catalogs", PUBLIC_ID, SYSTEM_ID);
            xml.endDTD();

            _saveCatalogs(xml, catalogs);
View Full Code Here

Examples of org.dom4j.jaxb.JAXBWriter.startDocument()

            JAXBWriter jaxbWriter = new JAXBWriter("org.dom4j.test.primer",
                    OutputFormat.createPrettyPrint());
            jaxbWriter.setOutput(outputFile);

            jaxbWriter.startDocument();
            jaxbWriter.write(orders);
            jaxbWriter.endDocument();
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.eclipse.persistence.internal.oxm.record.UnmarshalRecord.startDocument()

              }
              ObjectBuilder stob2 = (ObjectBuilder)xmlDescriptor.getObjectBuilder();
              UnmarshalRecord childRecord = unmarshalRecord.getChildUnmarshalRecord(stob2);
              childRecord.setSelfRecord(true);
              unmarshalRecord.setChildRecord(childRecord);
              childRecord.startDocument();
              childRecord.initializeRecord(this.xmlCompositeObjectMapping);

              return childRecord;
            } else{
              return null;
View Full Code Here

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

                }
                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.eclipse.persistence.oxm.record.OutputStreamRecord.startDocument()

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

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

            TreeObjectBuilder stob2 = (TreeObjectBuilder)xmlDescriptor.getObjectBuilder();
            UnmarshalRecord childRecord = (UnmarshalRecord)stob2.createRecord(unmarshalRecord.getSession());
            childRecord.setSelfRecord(true);
            unmarshalRecord.setChildRecord(childRecord);
            childRecord.setXMLReader(unmarshalRecord.getXMLReader());
            childRecord.startDocument(this.xmlCompositeObjectMapping);
            xmlCompositeObjectMapping.setAttributeValueInObject(unmarshalRecord.getCurrentObject(), childRecord.getCurrentObject());
            if(xmlCompositeObjectMapping.getContainerAccessor() != null) {
              xmlCompositeObjectMapping.getContainerAccessor().setAttributeValueInObject(childRecord.getCurrentObject(), unmarshalRecord.getCurrentObject());
            }
            return childRecord;
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.