if (curLocalName.equalsIgnoreCase("note") || curLocalName.equalsIgnoreCase("prop")) { startDoc.setProperty(new Property(name, value.toString(), true)); name = null; value.setLength(0);
startDoc.setProperty(new Property(Property.ENCODING, encoding, false)); skel.append("<?xml version=\"1.0\" encoding=\""); skel.addValuePlaceholder(startDoc, Property.ENCODING, LocaleId.EMPTY);
startDoc.setProperty(new Property(Property.ENCODING, encoding, false)); skel.append("<?xml version=\"1.0\" encoding=\"");
@Override protected void createStartDocumentSkeleton (StartDocument startDoc) { // Add the XML declaration skel = new GenericSkeleton(); if ( !params.omitXMLDeclaration ) { skel.add("<?xml version=\"" + doc.getXmlVersion() + "\""); skel.add(" encoding=\""); skel.addValuePlaceholder(startDoc, Property.ENCODING, LocaleId.EMPTY); skel.add("\""); startDoc.setProperty(new Property(Property.ENCODING, encoding, false)); if ( doc.getXmlStandalone() ) skel.add(" standalone=\"yes\""); skel.add("?>"+lineBreak); } // Add the DTD if needed DocumentType dt = doc.getDoctype(); if ( dt != null ) { rebuildDocTypeSection(dt); } }
startDoc.setProperty(new Property(Property.ENCODING, encoding, false)); skel.add("<?xml version=\"1.0\" encoding=\""); skel.addValuePlaceholder(startDoc, Property.ENCODING, LocaleId.EMPTY);