Hello,
I use libxml-2.0 and I noticed that there was no method to create a
namespace in the vala binding.
xmlNewNs is not available in the vapi.
That's why I added a Xml.Ns.create static method that wraps xmlNewNs. I
don't know if it's the right place, but xmlNewNs is required to create a
namespace in an XML document.
I attach the patch to this mail.
Regards,
Eric
diff --git a/vapi/libxml-2.0.vapi b/vapi/libxml-2.0.vapi
index 9491131..6649e06 100644
--- a/vapi/libxml-2.0.vapi
+++ b/vapi/libxml-2.0.vapi
@@ -719,11 +719,13 @@ namespace Xml {
[Compact]
[CCode (cname = "xmlNs", cheader_filename = "libxml/tree.h")]
public class Ns {
- public Ns next;
+ [CCode (cname = "xmlNewNs")]
+ public static Ns* create(Xml.Node* node, string href, string prefix);
+ public Ns* next;
public ElementType type;
public string href;
public string prefix;
- public Doc context;
+ public Doc* context;
}
[Compact]
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list