Anyone have ideas on how to get this XML file through the WebHelp build process unscathed?
Thanks!
Code: Select all
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<catalog class=\"\" MadCap:conditionTagExpression=\"\" xmlns:MadCap=\"http://www.madcapsoftware.com/Schemas/MadCap.xsd\">
<cd><title>Pause</title>
<artist>Four Tet</artist>
<country>USA</country>
<company>Domino Records</company>
<price>12.95</price>
<year>2001</year>
</cd>
<cd><title>Oh, Inverted World</title>
<artist>The Shins</artist>
<country>USA</country>
<company>Sub Pop</company>
<price>14.95</price>
<year>2001</year>
</cd>
<cd><title>Takk...</title>
<artist>Sigur Ros</artist>
<country>Iceland</country>
<company>Geffen</company>
<price>14.95</price>
<year>2005</year>
</cd>
</catalog>
Code: Select all
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<html xmlns:MadCap=\"http://www.madcapsoftware.com/Schemas/MadCap.xsd\" MadCap:tocPath=\"\" class=\"\">
<head><title>Pause</title>
<link href=\"../../SkinSupport/MadCap.css\" rel=\"stylesheet\" />
<link href=\"../Stylesheets/Styles.css\" rel=\"stylesheet\" />
<script src=\"../../SkinSupport/MadCapUtilities.js\"> <![CDATA[ ]]></script>
<script src=\"../../SkinSupport/MadCapBody.js\"> <![CDATA[ ]]></script>
<script src=\"../../SkinSupport/MadCapHighlighter.js\"> <![CDATA[ ]]></script>
</head>
<body>
<div class=\"MCBreadcrumbsBox\"><span class=\"MCBreadcrumbsPrefix\">You are here: </span><span class=\"MCBreadcrumbs\">Pause</span>
</div>
<MadCap:bodyProxy />
<p> </p>
<div class=\"Footer\"><span class=\"Copyright\">Copyright © 2007. All rights reserved.</span>
</div>
<script type=\"text/javascript\" src=\"../../SkinSupport/MadCapBodyEnd.js\">
</script>
</body>
</html>
Code: Select all
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<!-- Copyright 2006-2007 by ActiVia Networks, Inc. All Rights Reserved. -->
<html xmlns:MadCap=\"http://www.madcapsof...I believe that this is poppycock and have told the support team. I'm hoping that they come back with a better answer. I can display the XML files in IE outside of the WebHelp, but once the WebHelp is produced, IE can no longer display the XML files.The reason this is occuring is becasue Most of your topics are XML files, In your Content Explorer go to the DocumentFields folder and then notice that most of these files are ending in XML. These files can not be read by a browser, That is why you are seeing the error. Most browsers can not handle a XML file, it needs to be a htm File. You will need to find some way to change those files to HTML files.
This kind of sucks as Flare is meant to be a content management system. By not being able to host non-html files, it defeats the purpose of the product. I have to keep my XML files outside of the project and when I compile, I then have to copy these XML files into the compiled directory.You are correct, the files are being changed by Flare, Flare see the xml files and is trying to make them Valid xhtml and is changing your text if files. I have logged this with our developers to give you the option not to modify XML files that are not topics. If this is done in a future version of Flare you will be notified.
As a Workaround you can copy the XML files from your Content Directory int your output file, this will work as Flare will not have touched the files.
Code: Select all
html
{
mc-master-page: url('../../MasterPages/YourMasterPage.flmsp')
}Unfortunately, I must have done something else to cause it to skip over the xml files and now I can't figure it out. Yesterday I was publishing all day without it altering my xml data and then today I published and now they're all changed. Sorry! I even tried creating and attaching a schema to my xml data files, but Flare ignores the schema. Still working on it.My xml data files were being altered as well and I tried all the workarounds listed here but none of them worked. Finally, I tried adding my own xmlns and then they were left alone.
It appears that if a file does not have a declared xmlns to begin with, Flare will insert the default MadCap xmlns itself during the packaging process. Then later in the same process it will 'see' the xml file that it added the xmlns to and proceed to alter the file further using the default topic template to make it xhtml compliant.Code: Select all
<anxmltag xmlns:xyz="http://www.yourwebsite.com"> <anothertag>blah blah blah</anothertag> <anothertag>yadda yadda</anothertag> <anothertag>etc. and so on</anothertag> ... </anxmltag>
This worked with WebHelpPlus as the target. I haven't tried it with any other target, but I wouldn't expect it to be different.