isValidXML is no longer of any use
This commit is contained in:
parent
478d679985
commit
8e226b48ef
7
atom.go
7
atom.go
@ -1,7 +1,6 @@
|
||||
package atom
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"mime"
|
||||
"regexp"
|
||||
@ -87,9 +86,3 @@ func isValidLanguageTag(tag LanguageTag) bool {
|
||||
func NewURN() IRI {
|
||||
return IRI(fmt.Sprint("urn:uuid:", uuid.New()))
|
||||
}
|
||||
|
||||
// isValidXML checks whether a string is valid XML. It returns a bool.
|
||||
func isValidXML(input string) bool {
|
||||
var v interface{}
|
||||
return xml.Unmarshal([]byte(input), &v) == nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user