On May 4, 2014, at 5:52 AM, Richard Gillham Darnley wrote:
> Thank you for your support! I have reviewed your suggestions and I am still
> looking into either using a third-party xml parser such as libxml2 or rolling
> my own GDML-dedicated xml parser. I would like to keep any third-party
> dependencies to a minimum though.
>
> Does anyone have any experience rolling their own xml parser? I am not sure
> where to begin, what a parser 'looks like' or what type of
> functions/structures to use. I have trolled through the internet and will be
> leaving similar questions on the forums I find.
Per your original message and my original reply, if you're simply WRITING out
gdml/xml, you do not need to implement a parser or involve any third party
dependency. If that's all you're doing, it's more than overkill. It's simply
unnecessary complexity. You just have to make sure that your print statements
wrap the tags correctly. Example:
printf("<!-- This is a valid xml file -->\n");
printf("<note>\n<to>Richard</to>\n<from>Sean</from>\n");
printf("<message>I dont' need a parser to do this!</message>\n</note>\n");
Now writing an importer from XML is a *different* case altogether. That
warrants a parser.
Cheers!
Sean
>
> Cheers,
>
> Richard
>
> ---------- Forwarded message ----------
> From: Richard Gillham Darnley <rgdarn...@gmail.com>
> Date: Sun, Apr 20, 2014 at 9:13 PM
> Subject: format conversion from .g files to GDML file format
> To: brlcad-devel@lists.sourceforge.net
>
>
> Hi,
>
> I would like to introduce myself. I am a 'mature' newbie programmer who
> would like to produce a conversion routine between BRL-CAD's native file
> format to what is called Geometry Description Markup Language (GDML).
>
> As I am still learning to program in C I see this project taking me some
> time, but any advice from the other developers would be much appreciated as
> to the steps to take or other smaller goals to achieve first.
>
> Kind regards,
>
> Richard
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel