diff --git a/xml/attribute.go b/xml/attribute.go index 93e237e2..63887032 100644 --- a/xml/attribute.go +++ b/xml/attribute.go @@ -1,5 +1,6 @@ package xml +import "C" /* AttributeNode represents an attribute, which has a name and a value. diff --git a/xml/cdata.go b/xml/cdata.go index d7cc458d..b9a6b9a0 100644 --- a/xml/cdata.go +++ b/xml/cdata.go @@ -1,5 +1,7 @@ package xml +import "C" + /* CDataNode represents a CDATA section. This XML node type allows the embedding of unescaped, verbatim text within an XML document. It is otherwise identical to a TextNode. It is most often used to wrap content that is whitespace-sensitive or likely to contain diff --git a/xml/comment.go b/xml/comment.go index 177cf545..a287e35a 100644 --- a/xml/comment.go +++ b/xml/comment.go @@ -1,5 +1,7 @@ package xml +import "C" + type CommentNode struct { *XmlNode } diff --git a/xml/element.go b/xml/element.go index da6a92dc..d9297dc2 100644 --- a/xml/element.go +++ b/xml/element.go @@ -1,5 +1,7 @@ package xml +import "C" + type ElementNode struct { *XmlNode } diff --git a/xml/pi.go b/xml/pi.go index bc5d9aa7..b46f998d 100644 --- a/xml/pi.go +++ b/xml/pi.go @@ -1,5 +1,7 @@ package xml +import "C" + type ProcessingInstructionNode struct { *XmlNode }