[
Date Prev
][
Date Next
] [
Thread Prev
][
Thread Next
] [
Thread Index
] [
Date Index
] [
Author Index
]
[xml] namespaces redeclarations
From
: "Arne Van Theemsche" <arnevt gmail com>
To
: xml gnome org
Subject
: [xml] namespaces redeclarations
Date
: Tue, 17 Apr 2007 11:04:50 +0200
Hi
I use the perl interfaces to libxml2
imagine I parse an xml like
<foo xmlns:ns2=
http://www.foo.bar
>
<ns2:bar/>
</foo>
and then i do a createElementNS("
http://www.foo.bar
","bar2") and an appendChild on the "ns2:bar" I will end up in something like
<foo xmlns:ns2=
http://www.foo.bar
>
<ns2:bar><bar2 xmlns="
http://www.foo.bar
"/></ns2:bar>
</foo>
this is syntax wise ok, but i would rather end up in something like
<foo xmlns:ns2=
http://www.foo.bar
>
<ns2:bar><ns2:bar2/></ns2:bar>
</foo>
is there a solution to this or am I just making problems for nothing? :)
thx
Arne
Follow-Ups
:
Re: [xml] namespaces redeclarations
From:
Petr Pajas
[
Date Prev
][
Date Next
] [
Thread Prev
][
Thread Next
] [
Thread Index
] [
Date Index
] [
Author Index
]