isValidXML is no longer of any use

This commit is contained in:
Jason Streifling 2024-10-17 19:05:23 +02:00
parent 478d679985
commit 8e226b48ef

View File

@ -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
}