Namespaces in XML language

Hi. I'm trying to use mps to generate nant buildfiles. I have to specify namespaces like xmlns="http://nant.sf.net/release/0.85/nant.xsd". When I try to do this via attribute I get the error:

org.jdom.IllegalNameException: The name "xmlns" is not legal for JDOM/XML attributes: An Attribute name may not be "xmlns"; use the Namespace class to manage namespaces.

What is the easiest way to add namespaces support to xml language?

3 comments
Comment actions Permalink

Hi,

Our XML language doesn't support XML namespaces yet. The only way to use them is to specify full name.

0
Comment actions Permalink

Thank you for reply.

Can you suggest me what is better: try to extend your XML language or create my own?

0
Comment actions Permalink

Hello,

It won't take a lot of time to create your own XML language. And it will be a good exercise for you because you have a little MPS experience. I recommend you doing this.

0

Please sign in to leave a comment.