Re: [xml] Two basic questions about libxml



-On [20060705 03:29], Teresa Thomas (tere ertw gmail com) wrote:
1) Are there any compilation/linking flags involved?

It uses autoconf, so see configure --help's output, which in turn will
decrease or increase the flags as needed.

2) Is it possible to use libxml2 to 'go backwards' - create an XML document
out of given data . Sample code/links to documentation would be gladly
accepted.

Sure, there's even lxml for python which uses libxml2 in an ElementTree-like
API. And you can construct documents piecemeal, element, by element, and so
on. So you have full control over the resulting document. Sample code depends
on what language you prefer. Google for lxml and select the codespeak URL,
lots of examples there, if you like Python.

-- 
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
ããããã ãããããã ããã ãã ãããããã
http://www.in-nomine.org/
One who knows that enough is enough will always have enough...



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]