Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newDocument (0.08 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/XmlSpecification.groovy

    import javax.xml.parsers.DocumentBuilder
    import javax.xml.parsers.DocumentBuilderFactory
    
    abstract class XmlSpecification extends Specification {
        final Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument()
    
        def parse(String str, Document document = null) {
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance()
            factory.setNamespaceAware(true)
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.1K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/XIncludeAwareXmlProvider.groovy

        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 ->
                TransformerFactory factory = TransformerFactory.newInstance()
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocExtensionsBuilder.java

            }
        }
    
        private void build(ClassExtensionDoc extensionDoc) {
            Document doc;
            try {
                doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
            } catch (ParserConfigurationException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
    
            LinkRenderer linkRenderer = new LinkRenderer(doc, model);
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.9K bytes
    - Viewed (0)
Back to top