Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No escaping of " characters #18

Open
GoogleCodeExporter opened this issue Jun 1, 2015 · 3 comments
Open

No escaping of " characters #18

GoogleCodeExporter opened this issue Jun 1, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a new topic with either a name or an occurrence containing the 
character ", for Example with TMAPI: topic.createName("My \" Name", new 
ArrayList<Topic>());
2. Serialize the map with a CTMTopicMapWriter

What is the expected output? What do you see instead?
The name string should be escaped like
-  <http://psi.topicmaps.org/iso13250/model/topic-name> : """My " Name"""
instead of
-  <http://psi.topicmaps.org/iso13250/model/topic-name> : "My " Name"

What version of the product are you using? On what operating system?
1.0.7


Original issue reported on code.google.com by eferonline on 7 Sep 2010 at 9:02

@GoogleCodeExporter
Copy link
Author

I think it's fixed in trunk.

In the meantime you may want to use the TMAPIX' CTMTopicMapWriter which 
provides less options but is well tested and should not create invalid CTM: 
https://code.google.com/p/tmapix/

Original comment by lars.he...@gmail.com on 7 Sep 2010 at 8:20

@GoogleCodeExporter
Copy link
Author

... and please *don't* use in TMAPI:

topic.createName("My \" Name", new ArrayList<Topic>());

correct usage:

topic.createName("My \" Name");


Original comment by lars.he...@gmail.com on 7 Sep 2010 at 8:28

@GoogleCodeExporter
Copy link
Author

Thanks for your replies. Hopefully a new jar release with the fixes will come 
out soon.

I know and already use TMAPIX for XTM handling.

And thanks for the hint. I must have overlooked the dots of "Topic... scope" in 
the method signature.

Original comment by eferonline on 8 Sep 2010 at 7:18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant