Namespace lost

0 views
Skip to first unread message

Luis Miguel Morillas

unread,
Oct 21, 2008, 3:00:37 AM10/21/08
to Amara Developers
I'm working with this example, from old amara's tests:
<A xmlns:ns="urn:bogus" ns:a="b"/>

But when I'm parsing it with new Amara2 I can't output namespace
declaracion

In [14]: XML = '<A xmlns:ns="urn:bogus" ns:a="b"/>'

In [15]: doc = amara.parse(XML)

In [16]: xml_print(doc)
<?xml version="1.0" encoding="UTF-8"?>
<A ns:a="b"/>

How can I output that namespace declaration?

-- lm

Uche Ogbuji

unread,
Oct 21, 2008, 9:58:48 AM10/21/08
to amar...@googlegroups.com
Fixed this bug. Thanks. I assume your test porting will handle
regression test for this.

--Uche


--
Uche Ogbuji http://uche.ogbuji.net
Founding Partner, Zepheira http://zepheira.com
Linked-in profile: http://www.linkedin.com/in/ucheogbuji
Articles: http://uche.ogbuji.net/tech/publications/

Reply all
Reply to author
Forward
0 new messages