Import { "github.com/krolaw/xsd" } is not working

Hi

I trying to validated the XML with XSD available and for the same I have found the github.com/krolaw/xsd pakage.

import (
// The xsd package does not read in documents.
// Any package that exposes the document’s libxml2’s xmlDocPtr will do.
// This one seemed rather straight forward, but others should be fine.
github.com/jbussdieker/golibxml
github.com/krolaw/xsd

"fmt"
"unsafe"

)

In the above Import block two pakges( 1 . "github.com/jbussdieker/golibxm and 2 . “github.com/krolaw/xsd”) are not getting imported.

Could any one help me to resolve this problem ?

Thanks
mr

Did you run

$ go get github.com/jbussdieker/golibxml
$ go get github.com/krolaw/xsd

to install the modules?

2 Likes

I dint do that, now I have done and it is working thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.