markup.py how to use ':' in a tag

Maw1rik

New Member
Code:\[code\]import markupurl_= ('href1.com','href2.com')mycxml=markup.page(mode='xml', case='given')mycxml.init(encoding='utf-8')mycxml.Collection.open()mycxml.Items(url_)mycxml.collection.close()print mycxml\[/code\]Output:\[code\]<?xml version='1.0' encoding='utf-8' ?><Collection><Items>href1.com</Items><Items>href2.com</Items></collection>\[/code\]I would like to have a line like \[code\]<Collection xmlns:p="somelines">\[/code\] instead of \[code\]<Collection>\[/code\], but the \[code\]:\[/code\] does not let me compile it. How can I "escape" it?
 
Back
Top