Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for CharData (0.12 sec)

  1. src/encoding/xml/xml_test.go

    	CharData("\n    "),
    	StartElement{Name{"", "inner"}, []Attr{}},
    	EndElement{Name{"", "inner"}},
    	CharData("\n  "),
    	EndElement{Name{"", "outer"}},
    	CharData("\n  "),
    	StartElement{Name{"tag", "name"}, []Attr{}},
    	CharData("\n    "),
    	CharData("Some text here."),
    	CharData("\n  "),
    	EndElement{Name{"tag", "name"}},
    	CharData("\n"),
    	EndElement{Name{"", "body"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  2. src/encoding/xml/marshal_test.go

    	T2      T2
    }
    
    type IndirChardata struct {
    	T1       T1
    	Chardata *string `xml:",chardata"`
    	T2       T2
    }
    
    type DirectChardata struct {
    	T1       T1
    	Chardata string `xml:",chardata"`
    	T2       T2
    }
    
    type IfaceChardata struct {
    	T1       T1
    	Chardata any `xml:",chardata"`
    	T2       T2
    }
    
    type IndirCDATA struct {
    	T1    T1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  3. src/encoding/xml/read.go

    // The chardata contained in the element (but not its children)
    // is passed to the text unmarshaler.
    func (d *Decoder) unmarshalTextInterface(val encoding.TextUnmarshaler) error {
    	var buf []byte
    	depth := 1
    	for depth > 0 {
    		t, err := d.Token()
    		if err != nil {
    			return err
    		}
    		switch t := t.(type) {
    		case CharData:
    			if depth == 1 {
    				buf = append(buf, t...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  4. src/encoding/xml/xml.go

    // An EndElement represents an XML end element.
    type EndElement struct {
    	Name Name
    }
    
    // A CharData represents XML character data (raw text),
    // in which XML escape sequences have been replaced by
    // the characters they represent.
    type CharData []byte
    
    // Copy creates a new copy of CharData.
    func (c CharData) Copy() CharData { return CharData(bytes.Clone(c)) }
    
    // A Comment represents an XML comment of the form <!--comment-->.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  5. src/encoding/xml/typeinfo.go

    		finfo.flags = fElement
    	} else {
    		tag = tokens[0]
    		for _, flag := range tokens[1:] {
    			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":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:23:29 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. cmd/api-response.go

    )
    
    // LocationResponse - format for location response.
    type LocationResponse struct {
    	XMLName  xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ LocationConstraint" json:"-"`
    	Location string   `xml:",chardata"`
    }
    
    // PolicyStatus captures information returned by GetBucketPolicyStatusHandler
    type PolicyStatus struct {
    	XMLName  xml.Name `xml:"http://s3.amazonaws.com/doc/2006-03-01/ PolicyStatus" json:"-"`
    	IsPublic string
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  7. src/encoding/xml/read_test.go

    	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"},
    	Title:   "Code Review - My issues",
    	Link: []Link{
    		{Rel: "alternate", Href: "http://codereview.appspot.com/"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  8. src/encoding/xml/marshal.go

    //   - a field with tag "name,attr" becomes an attribute with
    //     the given name in the XML element.
    //   - a field with tag ",attr" becomes an attribute with the
    //     field name in the XML element.
    //   - a field with tag ",chardata" is written as character data,
    //     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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(CharData).Copy", Method, 0},
    		{"(Comment).Copy", Method, 0},
    		{"(Directive).Copy", Method, 0},
    		{"(ProcInst).Copy", Method, 0},
    		{"(StartElement).Copy", Method, 0},
    		{"(StartElement).End", Method, 2},
    		{"(UnmarshalError).Error", Method, 0},
    		{"Attr", Type, 0},
    		{"Attr.Name", Field, 0},
    		{"Attr.Value", Field, 0},
    		{"CharData", Type, 0},
    		{"Comment", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg encoding/xml, method (*SyntaxError) Error() string
    pkg encoding/xml, method (*TagPathError) Error() string
    pkg encoding/xml, method (*UnsupportedTypeError) Error() string
    pkg encoding/xml, method (CharData) Copy() CharData
    pkg encoding/xml, method (Comment) Copy() Comment
    pkg encoding/xml, method (Directive) Copy() Directive
    pkg encoding/xml, method (ProcInst) Copy() ProcInst
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top