Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for emptyDoc (0.13 sec)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/XIncludeAwareXmlProvider.groovy

    import org.w3c.dom.Node
    
    class XIncludeAwareXmlProvider {
    
        Document root
    
        Element parse(File sourceFile) {
            root = parseSourceFile(sourceFile)
            root.documentElement
        }
    
        Node emptyDoc() {
            root = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument()
        }
    
        void write(File destFile, boolean indent = false) {
            destFile.withOutputStream { OutputStream stream ->
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.2K bytes
    - Viewed (0)
Back to top