Any comments/suggestions for this proposed plugin?<br><br>Regards<br>Amit<br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 4:41 PM, Amit Gupta <span dir="ltr"><<a href="mailto:amit.gupta221@gmail.com">amit.gupta221@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I have been working on curl_xml plugin. The idea of this plugin is to query the xml data using the curl library and parse it according to the user's configuration using libxml2. I have worked on the top of curl-json plugin code and got this plugin to work. I am proposing the following configuration for curl_xml:<br>
<br><Plugin curl_xml><br> <URL "[some url]"><br> Instance "<instance-name>"<br> <xpath "<xpath1>"><br> Instance "<instance-name>" (Optional)<br>
Type "<type>"<br> </xpath><br> <xpath "<xpath2>"><br>
Instance "<instance-name>" (Optional)<br>
Type "<type>"<br>
</xpath><br> </URL><br> <URL .....><br> ......<br> </URL><br></Plugin><br><br>libxml2 will parse the xml using xpath specified in the configuration. For now, the attached code supports one xpath to one element mapping. <br>
<br>Does this plugin make sense?. I will be submitting the configure, Makefile and the documentation changes once this idea is approved. <br><br>Regards<br><font color="#888888">Amit<br>
</font></blockquote></div><br>