diff --git a/README.md b/README.md index 0c46f09..a12a461 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,13 @@ Unmarshal function for the specified struct definition. } e := new(elem) - result, _, _ := MissingXMLTags([]byte(data), e) + result, root, _ := MissingXMLTags([]byte(data), e) // result: [elem2.another elem3] + // root: doc - result, _, _ = UnknownXMLTags([]byte(data), e) + result, root, _ = UnknownXMLTags([]byte(data), e) // result: [elem2.notes elem4] + // root: doc NOTE: this package is dependent upon github.com/clbanning/mxj. diff --git a/doc.go b/doc.go index abf440c..c42b803 100644 --- a/doc.go +++ b/doc.go @@ -33,11 +33,13 @@ Unmarshal function for the specified struct definition. } e := new(elem) - result, _, _ := MissingXMLTags([]byte(data), e) + result, root, _ := MissingXMLTags([]byte(data), e) // result: [elem2.another elem3] + // root: doc - result, _, _ = UnknownXMLTags([]byte(data), e) + result, root, _ = UnknownXMLTags([]byte(data), e) // result: [elem2.notes elem4] + // root: doc NOTE: this package is dependent upon github.com/clbanning/mxj. */