-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Labels
Description
If previous sibling contains same xmlns as current prefix does, the prefix will be dropped.
<omx xmlns:ct="automation.control">
<parameter xmlns="automation.control"/>
<ct:socket name="Info" />
</omx>
nodes, _ := xmlquery.QueryAll(root, "//*")
for _, node := range nodes {
fmt.Println("Data:", node.Data, "Prefix:", node.Prefix, "Namespace:", node.NamespaceURI)
}
gives
Data: socket Prefix: Namespace: automation.control
If I change to <parameter xmlns="automation.control_2">
everything is fine:
Data: socket Prefix: ct Namespace: automation.control