Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for innerxml (0.14 sec)

  1. src/encoding/xml/marshal_test.go

    	CDATA any `xml:",cdata"`
    	T2    T2
    }
    
    type IndirInnerXML struct {
    	T1       T1
    	InnerXML *string `xml:",innerxml"`
    	T2       T2
    }
    
    type DirectInnerXML struct {
    	T1       T1
    	InnerXML string `xml:",innerxml"`
    	T2       T2
    }
    
    type IfaceInnerXML struct {
    	T1       T1
    	InnerXML any `xml:",innerxml"`
    	T2       T2
    }
    
    type IndirElement struct {
    	T1      T1
    	Element *string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  2. src/encoding/xml/read_test.go

    	Rel  string `xml:"rel,attr,omitempty"`
    	Href string `xml:"href,attr"`
    }
    
    type Person struct {
    	Name     string `xml:"name"`
    	URI      string `xml:"uri"`
    	Email    string `xml:"email"`
    	InnerXML string `xml:",innerxml"`
    }
    
    type Text struct {
    	Type string `xml:"type,attr,omitempty"`
    	Body string `xml:",chardata"`
    }
    
    var atomFeed = Feed{
    	XMLName: Name{"http://www.w3.org/2005/Atom", "feed"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  3. src/encoding/xml/typeinfo.go

    			switch flag {
    			case "attr":
    				finfo.flags |= fAttr
    			case "cdata":
    				finfo.flags |= fCDATA
    			case "chardata":
    				finfo.flags |= fCharData
    			case "innerxml":
    				finfo.flags |= fInnerXML
    			case "comment":
    				finfo.flags |= fComment
    			case "any":
    				finfo.flags |= fAny
    			case "omitempty":
    				finfo.flags |= fOmitEmpty
    			}
    		}
    
    		// Validate the flags used.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:23:29 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  4. src/encoding/xml/read.go

    // In the rules, the tag of a field refers to the value associated with the
    // key 'xml' in the struct field's tag (see the example above).
    //
    //   - If the struct has a field of type []byte or string with tag
    //     ",innerxml", Unmarshal accumulates the raw XML nested inside the
    //     element in that field. The rest of the rules still apply.
    //
    //   - If the struct has a field named XMLName of type Name,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  5. src/encoding/xml/marshal.go

    //     not as an XML element.
    //   - a field with tag ",cdata" is written as character data
    //     wrapped in one or more <![CDATA[ ... ]]> tags, not as an XML element.
    //   - a field with tag ",innerxml" is written verbatim, not subject
    //     to the usual marshaling procedure.
    //   - a field with tag ",comment" is written as an XML comment, not
    //     subject to the usual marshaling procedure. It must not contain
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/MultiSectionHandler.groovy

        @Override
        String generateSection(GradleDsl dsl) {
            if (sectionName) {
                def name = escapeSectionName(dsl)
                """${name} {
                ${innerDsl(dsl)}
            }
            """
            }
        }
    
        protected String innerDsl(GradleDsl dsl) {
            sections.collect { it.generateSection(dsl) }.join("\n            ")
        }
    
        private String escapeSectionName(GradleDsl dsl) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/ConfigurationSpec.groovy

                case GradleDsl.KOTLIN:
                    def creation = isCreate.get()
                    def prefix =  creation ?"val $name by configurations.creating ":"${name}.run "
                    return """$prefix {
        ${innerDsl(dsl)}
    }"""
            }
    
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/EnrichedReportRenderer.groovy

                        var downloadLink = document.createElement("a");
                        downloadLink.download = fileNameToSaveAs;
                        downloadLink.innerHTML = "Download File";
    
                        // Add the link to the DOM so that it can be clicked
                        downloadLink.href = window.URL.createObjectURL(textFileAsBlob);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 07 20:38:43 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. src/html/template/html.go

    // <div id=d></div>
    // <script>(function () {
    // var a = [], d = document.getElementById("d"), i, c, s;
    // for (i = 0; i < 0x10000; ++i) {
    //
    //	c = String.fromCharCode(i);
    //	d.innerHTML = "<span title=" + c + "lt" + c + "></span>"
    //	s = d.getElementsByTagName("SPAN")[0];
    //	if (!s || s.title !== c + "lt" + c) { a.push(i.toString(16)); }
    //
    // }
    // document.write(a.join(", "));
    // })()</script>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 19:42:28 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  10. src/syscall/js/js_test.go

    		div.Call("setAttribute", "id", "myDiv")
    		document.Get("body").Call("appendChild", div)
    		myDiv := document.Call("getElementById", "myDiv")
    		myDiv.Set("innerHTML", data)
    
    		if got, want := myDiv.Get("innerHTML").String(), data; got != want {
    			b.Errorf("got %s, want %s", got, want)
    		}
    		document.Get("body").Call("removeChild", div)
    	}
    }
    
    func TestGlobal(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
Back to top