Re: [xml] parsing xml file using xmlTextReader



ABeylin axsone com wrote:
If you are more interested in creating the output than learning to code
with libxml2, you may want to use xslt to convert your input XML
document into your desired output.
Xsltproc is one of executables you can use for such transformations:
http://xmlsoft.org/XSLT/xsltproc.html



That is an excellent suggestion. There is a good XSLT tutorial on line at:
http://www.zvon.org/xxl/XSLTutorial/Output/index.html

(There are also XML and XPATH tutorials there.)

A great site that has a detailed XSLT FAQ is here:
http://www.dpawson.co.uk/xsl/

Once you understand the basics, you should join the mailing list that you can find here:
http://www.mulberrytech.com/xsl/xsl-list/index.html

and post your question there, or search the archives to see if an answer exists. A bunch of real XSLT hotshots (the person who wrote Saxon, for instance) read the list and are endlessly patient in answering questions and helping people. Of course, after you understand the basics of XSLT, you might not need any help to solve your problem. Either way, after that you just need to develop your XSL stylesheet and use it with xsltproc.

I know it doesn't necessarily sound easy, but it's probably easier than writing a C or C++ program to do what you want.

- Rush



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