[xml] Weird xmlTextReaderRead(

2009-09-03 Thread Jianqing Zhang
I'm implementing a parser by xmlreader on C++. I design a nested framework to parse the XML file. If the parser gets a new element, a corresponding C++ object is created and xmlTextReaderPtr is passed to the new object to parse and initialize its sub-elements (objects). As the program size increa

Re: [xml] Can I read namespace URIs as regular attributes?

2009-09-02 Thread Jianqing Zhang
Thanks Michael. I'm using C++ and have not figured it out. I'm wondering how I can get these namespace URIs. information On Wed, Sep 2, 2009 at 4:23 AM, Michael Ludwig wrote: > Jianqing Zhang schrieb: >> >> I'm trying to read all namespace URIs by go through all att

[xml] Can I read namespace URIs as regular attributes?

2009-09-01 Thread Jianqing Zhang
I'm trying to read all namespace URIs by go through all attributes of the root element. Can I read them as regular attributes? My code is following: // Current node is the root element attrNum = xmlTextReaderAttributeCount(reader); for (i=0;ihttp://xmlsoft.org/ xml@gnome.org http://ma