Hi all,

Sorry that I couldn't remember the W3C name for this feature. Essentially, if element foo has an empty content model, I would like DOMWriter to output <foo> instead of <foo></foo>. I know that they are equivalent but I prefer the former syntax...

I don't think any of these flags change that behavior

    // Introduced in DOM Level 3
    // DOMWriter feature
    static const XMLCh fgDOMWRTCanonicalForm[];
    static const XMLCh fgDOMWRTDiscardDefaultContent[];
    static const XMLCh fgDOMWRTEntities[];
    static const XMLCh fgDOMWRTFormatPrettyPrint[];
    static const XMLCh fgDOMWRTNormalizeCharacters[];
    static const XMLCh fgDOMWRTSplitCdataSections[];
    static const XMLCh fgDOMWRTValidation[];
    static const XMLCh fgDOMWRTWhitespaceInElementContent[];
    static const XMLCh fgDOMWRTBOM[];
    static const XMLCh fgDOMXMLDeclaration[];

Any idea please?

Thanks, Han Ming

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Reply via email to