On Sunday 11 February 2007, Rajarshi Guha wrote:
> Hi, is there a way to add a namespace prefix to the elements in a CML
> document, that way that OpenBabel does (via the -xN<prefix> arg)?
Using the cdk.io.CMLWriter this is covered by the IOSettings:
namespacedOutput = new BooleanIOSetting("NamespacedOutput", IOSetting.LOW,
"Should the output use namespaced output?",
"true");
namespacePrefix = new StringIOSetting("NamespacePrefix", IOSetting.LOW,
"What should the namespace prefix be? [empty is no prefix]",
"");
See the CDK News article in issue 2 of volume 1 [1] about IOSettings on how to
set these.
Egon
1.http://almost.cubic.uni-koeln.de/cdk/cdk_top/cdk_news/
--
[EMAIL PROTECTED]
Cologne University Bioinformatics Center (CUBIC)
Blog: http://chem-bla-ics.blogspot.com/
GPG: 1024D/D6336BA6
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user