Thursday, June 7, 2007

More on parsing

I lied in the last post, I've been using libxml2 to parse and write the config file. The example I posted had some minor errors in syntax which have been fixed now.

I had some problems with the Priomap qdisc and recursively traversing the xmlNodes while creating LQLElements. Because of this, I am creating a tree (a copy of the xml tree) using N-ary Trees included in Glib. This tree holds an xmlNode (for data such as qdisc type, and other properties), an LQLInterface (required for new LQLElements), and an LQLElement.

No comments: