[XML-SIG] Could somebody help me?

Uche Ogbuji Uche.Ogbuji at fourthought.com
Fri Jan 28 16:00:15 CET 2005

On Fri, 2005-01-28 at 14:42 +0530, Prasad PS wrote:
> Hi Luis,
>  I too have followed the second choice but what happened was, when I add
> the root document to the xml file, I find the previous content and the
> combination of the previous and the new content in the file and moreover
> xml declarator is appearing twice.

You don't give enough information about your problem for anyone to
diagnose.  Here is an example of what you described in your original

$ python
Python 2.3.2 (#1, Dec  8 2003, 07:49:35)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> XML = "<a><b/><b/></a>"
>>> from amara import binderytools
>>> doc = binderytools.bind_string(XML)
>>> doc.a.xml_append(doc.xml_element(None, u'b')) #None is the namespace
>>> doc.xml()
'<?xml version="1.0" encoding="UTF-8"?>\n<a><b/><b/><b/></a>'
>>> print doc.xml()
<?xml version="1.0" encoding="UTF-8"?>

Works fine.  If you tried something similar and it didn't work, let us
know the details of what you tried and what went wrong.


Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Use CSS to display XML - http://www.ibm.com/developerworks/edu/x-dw-x-xmlcss-i.html
Introducing the Amara XML Toolkit - http://www.xml.com/pub/a/2005/01/19/amara.html
Be humble, not imperial (in design) - http://www.adtmag.com/article.asp?id=10286
UBL 1.0 - http://www-106.ibm.com/developerworks/xml/library/x-think28.html
Manage XML collections with XAPI - http://www-106.ibm.com/developerworks/xml/library/x-xapi.html
Default and error handling in XSLT lookup tables - http://www.ibm.com/developerworks/xml/library/x-tiplook.html
Packaging XSLT lookup tables as EXSLT functions - http://www.ibm.com/developerworks/xml/library/x-tiplook2.html

More information about the XML-SIG mailing list