Hello,<br><br>Yep I currently just use libxml to check if the document contains a valid XML. Then my script process the pretty-printing on a char* buffer and I do the parsing manually (but I don't need to verify XML). The idea is also to provide a simple XML PrettyPrinter script in C. So far I had never found one that can suit to my needs...<br>
I'll commit all my sources to the svn asap :-) If you have any advices, just tell me so I can learn !<br><br>Thanks & best regards,<br>Cedric<br><br><div class="gmail_quote">2009/8/9 Enrico Tröger <span dir="ltr"><<a href="mailto:enrico.troeger@uvena.de">enrico.troeger@uvena.de</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Sun, 9 Aug 2009 18:37:34 +0200, Cédric wrote:<br>
<br>
>Hi Enrico,<br>
><br>
>Thanks for your advices. Since I don't develop pretty much in C, I<br>
>don't know the geany-standards very well. I'll correct that :-) For<br>
>formatting the current selection there are two technical problems I<br>
>see :<br>
>- The selected text must be a valid XML (from start node to its closing<br>
>tag).<br>
>- How do I get the depth of the selected node ?<br>
<br>
</div>Ah ok, I didn't think of these two problems. It also was just an idea,<br>
no need to implement this if it isn't easily possible.<br>
<br>
In addition to Philipp's suggestion about writing an own parser, GLib<br>
also has a simple XML parser builtin. Not sure whether it is suitable<br>
for your needs but maybe it's worth having a look, then you could also<br>
ditch the external dependency on libxml.<br>
But again, just an idea.<br>
<div class="im"><br>
<br>
>I just sent you a request to join the geany project on sourceforge.<br>
<br>
</div>Handled, added and confirmed to you via PM :).<br>
<div><div></div><div class="h5"><br>
<br>
Regards,<br>
Enrico<br>
<br>
--<br>
Get my GPG key from <a href="http://www.uvena.de/pub.asc" target="_blank">http://www.uvena.de/pub.asc</a><br>
</div></div><br>_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de">Geany-devel@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
<br></blockquote></div><br>