Closed LiNing2021 closed 3 years ago
sorry。There's no problem. It's my code error.
doc := etree.NewDocument() doc.ReadFromFile("abc.xml")
child = <Kokoku></Kokoku>
Kokoku := etree.NewDocument()
Kokoku.ReadFromBytes([]byte(child));
cc = Kokoku.Copy() data:=cc.SelectElement("data") doc.AddChild(data)
when I make a new child to add it to a doc like this
The resulting document contains a blank tag “<></>”
<><Kokoku></Kokoku></>
Is this a BUG?