On Sun, Sep 06, 2009 at 04:53:14PM +0200, Emmanuel Rodriguez wrote:
> On Thu, Sep 3, 2009 at 12:39 AM, Jianqing Zhang
> wrote:
>
> > Thanks Michael. I'm using C++ and have not figured it out. I'm
> > wondering how I can get these namespace URIs. information
> >
> > The following xpath expression
On Thu, Sep 3, 2009 at 12:39 AM, Jianqing Zhang wrote:
> Thanks Michael. I'm using C++ and have not figured it out. I'm
> wondering how I can get these namespace URIs. information
>
> The following xpath expression ".//namespace::*" can find all namespaces
declarations in a document and it works w
On Tue, Sep 01, 2009 at 10:30:37PM -0500, Jianqing Zhang wrote:
> I'm trying to read all namespace URIs by go through all attributes of
> the root element. Can I read them as regular attributes?
No, basically libxml2 separates the namespaces when parsing, and move
them out of the attribute list.
Jianqing Zhang schrieb:
Thanks Michael. I'm using C++ and have not figured it out. I'm
wondering how I can get these namespace URIs.
It sure is possible.
print $_->name, "\t", $_->value, "\n"
for $doc->documentElement->getNamespaces;
print $_->name, "\t", $_->value, "\n"
for
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 attributes of
>> the root element.
Jianqing Zhang schrieb:
I'm trying to read all namespace URIs by go through all attributes of
the root element. Can I read them as regular attributes?
Jianqing,
I don't know the C API, but in general, a parser may have a flag to
turn namespace-awareness on or off.
I'm not sure LibXML2 has thi
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