Dear all,

I want to use doxygen's doxmlparser to analysis the generated xml files.
When I use the next code the print the line number and ref information:

if (comp->kind() == ICompound::File) {
            IFile *file = dynamic_cast<IFile*>(comp);
            IDoc *source = file->source();
            IDocProgramListing *programListing =
dynamic_cast<IDocProgramListing*>(source);
            IDocIterator *cli = programListing->codeLines();
            IDoc *cx;
            for (cli->toFirst();(cx=cli->current());cli->toNext()) {
                IDocCodeLine *cl = dynamic_cast<IDocCodeLine*>(cx);
                ASSERT(cl!=0);
                printf("<codeline lineNumber=%d
refId=`%s'>\n",cl->lineNumber(),cl->refId()->latin1());
            }
        }
}

I can only get the next *"empty"* information. What's wrong of my code? Did
I miss something? Thank you all in advance.

<codeline lineNumber=0 refId=`'>
<codeline lineNumber=0 refId=`'>
<codeline lineNumber=0 refId=`'>
<codeline lineNumber=0 refId=`'>
<codeline lineNumber=0 refId=`'>
<codeline lineNumber=0 refId=`'>
<codeline lineNumber=0 refId=`'>
<codeline lineNumber=0 refId=`'>
<codeline lineNumber=0 refId=`'>
<codeline lineNumber=0 refId=`'>
<codeline lineNumber=0 refId=`'>
...
...

--------------------------------------------
Qiuping Yi
Institute Of Software
Chinese Academy of Sciences
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Doxygen-users mailing list
Doxygen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Reply via email to