pejtsn
(pejtsn)
April 24, 2002, 1:33am
1
Hello, I have some problems with documents containing , because tamino encodes the content. For example, I want to insert the following code:<![CDATA[
hello
]]>
After uploading the document, the
xsl:result contains:
<![CDATA[hello
]]>
But this is not the same - and I need the original code.
Has anybody some ideas?
Thanx for help
Marko
Guest
(Guest)
April 24, 2002, 2:32pm
2
To narrow this down we need the following information. 1)Which version of Tamino do you have? 2)How are you uploading the information? TII, JavaLoader, API? I just tried your data - loading it to a Tamino 3.1.1.4 using Jscript (same technique as TII) but didn’t get the problem
Hi Marko, which Tamino version do you use? In my 3.1.1.4,
Hi Marko, which Tamino version do you use? In my 3.1.1.4, CDATA is not encoded
pejtsn
(pejtsn)
April 24, 2002, 5:14pm
5
Hello, We use Tamino 3.1.1.3 and Suse Linux 7.3 as Server. For the Upload we use the JavaAPI (TaminoAPI4J.jar) and sourcecode like the following: TXMLObjectAccessor xoa = connection.newXMLObjectAccessor( TAccessLocation.newInstance(“myCollection”), TDOMObjectModel.getInstance()); TXMLObject insertFile = TXMLObject.newInstance(new File(“file.xml”)); TResponse response = xoa.insert(insertFile); Now as you mention it, I tried the InteractiveInterface - fine, no such problem. But with the JavaAPI it doesn’t work. Maybe a problem with JDOM? greetings, Marko
pejtsn
(pejtsn)
April 29, 2002, 7:27pm
6
Hello, if anyone is still interested in this problem: it is solved (thanx to Manfred Kluckner, Software AG Customer Support Center). It seems that there is a problem with the DOM or TDOMObjectModel. The TJDOMObjectModel works. So we changed our sourcecode to the following: TXMLObjectAccessor xoa = connection.newXMLObjectAccessor( TAccessLocation.newInstance(“myCollection”), TJDOMObjectModel.getInstance()); SAXBuilder saxBuilder = new SAXBuilder(); org.jdom.Document in = saxBuilder.build(new File(“file.xml”)); TXMLObject insertFile = TXMLObject.newInstance(in); TResponse response = xoa.insert(insertFile); Greetings, Marko