public void writeDTD(String rootName, String systemId, String publicId, String internalSubset) throws XMLStreamException { /* This may or may not work... depending on how well underlying * implementation follows stax 1.0 spec (it should work) */ StringBuffer sb = new StringBuffer(); sb.append("<!DOCTYPE"); sb.append(rootName); if (systemId != null) { if (publicId != null) { sb.append(" PUBLIC \""); sb.append(publicId); sb.append("\" \""); } else { sb.append(" SYSTEM \""); } sb.append(systemId); sb.append('"'); } // Hmmh. Should we output empty internal subset? if (internalSubset != null && internalSubset.length() > 0) { sb.append(" ["); sb.append(internalSubset); sb.append(']'); } sb.append('>'); writeDTD(sb.toString()); }
public void writeDTD(String rootName, String systemId, String publicId, String internalSubset) throws XMLStreamException { /* This may or may not work... depending on how well underlying * implementation follows stax 1.0 spec (it should work) */ StringBuffer sb = new StringBuffer(); sb.append("<!DOCTYPE"); sb.append(rootName); if (systemId != null) { if (publicId != null) { sb.append(" PUBLIC \""); sb.append(publicId); sb.append("\" \""); } else { sb.append(" SYSTEM \""); } sb.append(systemId); sb.append('"'); } // Hmmh. Should we output empty internal subset? if (internalSubset != null && internalSubset.length() > 0) { sb.append(" ["); sb.append(internalSubset); sb.append(']'); } sb.append('>'); writeDTD(sb.toString()); }
public void writeDTD(String rootName, String systemId, String publicId, String internalSubset) throws XMLStreamException { /* This may or may not work... depending on how well underlying * implementation follows stax 1.0 spec (it should work) */ StringBuffer sb = new StringBuffer(); sb.append("<!DOCTYPE"); sb.append(rootName); if (systemId != null) { if (publicId != null) { sb.append(" PUBLIC \""); sb.append(publicId); sb.append("\" \""); } else { sb.append(" SYSTEM \""); } sb.append(systemId); sb.append('"'); } // Hmmh. Should we output empty internal subset? if (internalSubset != null && internalSubset.length() > 0) { sb.append(" ["); sb.append(internalSubset); sb.append(']'); } sb.append('>'); writeDTD(sb.toString()); }
public void writeDTD(String rootName, String systemId, String publicId, String internalSubset) throws XMLStreamException { /* This may or may not work... depending on how well underlying * implementation follows stax 1.0 spec (it should work) */ StringBuffer sb = new StringBuffer(); sb.append("<!DOCTYPE"); sb.append(rootName); if (systemId != null) { if (publicId != null) { sb.append(" PUBLIC \""); sb.append(publicId); sb.append("\" \""); } else { sb.append(" SYSTEM \""); } sb.append(systemId); sb.append('"'); } // Hmmh. Should we output empty internal subset? if (internalSubset != null && internalSubset.length() > 0) { sb.append(" ["); sb.append(internalSubset); sb.append(']'); } sb.append('>'); writeDTD(sb.toString()); }
writeDTD(info.getDTDRootName(), info.getDTDSystemId(), info.getDTDPublicId(), info.getDTDInternalSubset());
writeDTD(info.getDTDRootName(), info.getDTDSystemId(), info.getDTDPublicId(), info.getDTDInternalSubset());
writeDTD(info.getDTDRootName(), info.getDTDSystemId(), info.getDTDPublicId(), info.getDTDInternalSubset());
writeDTD(info.getDTDRootName(), info.getDTDSystemId(), info.getDTDPublicId(), info.getDTDInternalSubset());