Home
TeamSite
Open DCR Error: Need Help
Hrd2Imagin
Hi, I'm developing a web application in PHP that will be a seperate interface for our Teamsite users. Currently, I'm creating a "New Content" application that creates the source code of a new DCR, fills in a bunch of fields automatically, and saves that source to the proper TS directory. It follows this routine:
1- Establish path and filename of new DCR file
2- Pull into the program a template of the DCR, (an empty DCR)
3- Fill in some DCR fields
4- Output the file to the filepath. ( Y:\..\templatedata\repositories\..\data\*.dcr )
I can open the file in a text editor to see that all of the data for the DCR I created is well-formed XML. But when I try to open the file via Teamsite, I get this error:
Templating Error Page
An exception was thrown: Stopping after fatal error: The markup in the document preceding the root element must be well-formed.
I'm guessing that when the webapp saves the file, it's not in the proper encoding (UTF-8) required by Teamsite. But that's just a guess. If I'm right, is there any way around this? Or is there any way to convert the file to the proper encoding? (with a command line tool or something)
Or am I wrong on what I think the problem may be?
Any input is profoundly appreciated!
- Alan
Find more posts tagged with
Comments
Adam Stoller
Make sure the file is all ASCII and that there is no (I believe it's called) BOM embeded within the XML file.
(I'm assuming you set the EAs on the file too - you didn't mention that step - as otherwise it wouldn't be trying to bring up the file within the Edit DCR window)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Hrd2Imagin
Yeah, I set the EA's with iwextattr, forgot to mention that.
I'm almost certain that the output of the file is all ASCII, I'll double check though. Thanks!
Adam Stoller
Failing that - could you perhaps post (as an attachment - set the extension to be ".txt") one of these files that causes this error?
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
iwovGraduate
A couple of other things to try:
Run iwxml_validate.ipl -well <full_path_to_dcr>. That might indicate you where (line number) the XML is invalid.
Enclose all the *values* in <![CDATA[ ]]> tag.
e.g.
....
<value><![CDATA[
Some ascii text.
]]></value>
....
Migrateduser
Hi.
I'm assuming you set the Extended Attributes for all the DCR's. also try with iwxml_validate.xml to validate your DCr's
Hope so it will work.
Thanx
Rishi Gupta
Interwoven certified teamsite consultant
Satyam computer services limited, India