isync has asked for the wisdom of the Perl Monks concerning the following question:
and this$VAR1 = { 'A:tree' => [ { 'A:twig' => [ { 'B:person' => [ { 'B:name' => [ 'J +im', 'J +ohn' ] } ] } ] } ], 'xmlns:B' => 'http://people.example.com/sitting-on-trees-ns' +, 'xmlns:A' => 'Plants:' };
As you can see, the first type of XML documents only declares namespaces in the "root-node". The second type of XML documents declares namespaces in a kind of mixed mode: some ns are declared in the "root-node" while others are opened along the way as attribs to keys or values, somewhere down in the nested structure.$VAR1 = { 'A:tree' => [ { 'A:twig' => [ { 'person' => [ { 'xmlns' => 'http://p +eople.example.com/sitting-on-trees-ns', 'content' => 'Jim' } ] } ] }, ], 'xmlns:A' => 'Plants:' };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to unify XML namespace notation
by ikegami (Patriarch) on Aug 24, 2010 at 18:40 UTC | |
by isync (Hermit) on Aug 24, 2010 at 18:49 UTC | |
by ikegami (Patriarch) on Aug 24, 2010 at 19:03 UTC | |
|
Re: How to unify XML namespace notation
by Jenda (Abbot) on Aug 24, 2010 at 20:40 UTC |