<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DTD validation in Alfresco in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dtd-validation-in-alfresco/m-p/270423#M223553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to validate xml content against custom DTD on ingestion.&amp;nbsp; I tried to store DTD's in a space inside company_home and tries to refer it through SAX Parser and it is throwing File Not found exception.&amp;nbsp; Any suggestion to handle this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Dec 2010 04:16:21 GMT</pubDate>
    <dc:creator>abi2004</dc:creator>
    <dc:date>2010-12-17T04:16:21Z</dc:date>
    <item>
      <title>DTD validation in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dtd-validation-in-alfresco/m-p/270423#M223553</link>
      <description>Hi,I want to validate xml content against custom DTD on ingestion.&amp;nbsp; I tried to store DTD's in a space inside company_home and tries to refer it through SAX Parser and it is throwing File Not found exception.&amp;nbsp; Any suggestion to handle this issue?</description>
      <pubDate>Fri, 17 Dec 2010 04:16:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dtd-validation-in-alfresco/m-p/270423#M223553</guid>
      <dc:creator>abi2004</dc:creator>
      <dc:date>2010-12-17T04:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: DTD validation in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dtd-validation-in-alfresco/m-p/270424#M223554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It should work.&amp;nbsp;&amp;nbsp; But how are you reading the DTD?&amp;nbsp;&amp;nbsp;&amp;nbsp; FileNotFound sounds like you are trying to read a file directly rather than an input stream.&amp;nbsp;&amp;nbsp; You should be able to use the content service to get an input stream for an InputStreamReader or similar class.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 10:31:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dtd-validation-in-alfresco/m-p/270424#M223554</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-12-17T10:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: DTD validation in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dtd-validation-in-alfresco/m-p/270425#M223555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks mrogers for your response,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using InputStream only and still getting FileNotFound Exception, here is my code snippet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;InputSource inputSource = new InputSource();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inputSource.setCharacterStream(new StringReader(inputString));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inputSource.setSystemId("/company_home/dtds");&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 12:19:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dtd-validation-in-alfresco/m-p/270425#M223555</guid>
      <dc:creator>abi2004</dc:creator>
      <dc:date>2010-12-17T12:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: DTD validation in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dtd-validation-in-alfresco/m-p/270426#M223556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't see how that code would work.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to find the node and then use the content service to get a content reader for that node&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can create the InputSource with the input stream.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or alternativly you may be able to specify the full URL /company_home/dtds rather than just a bit of the path.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 14:00:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dtd-validation-in-alfresco/m-p/270426#M223556</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-12-17T14:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: DTD validation in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dtd-validation-in-alfresco/m-p/270427#M223557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks mrogers and appreciate your feedback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried using InputStream from ContentReader and used it as part of InputSource.&amp;nbsp; Again same error message.&amp;nbsp; I am not sure how to get full URL of /company_home/dtds folder.&amp;nbsp; Here is the code I used and it throws File Not found exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ContentReader reader = contentService.getReader(actionedUponNodeRef, ContentModel.PROP_CONTENT);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InputStream inputStream = reader.getContentInputStream();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;InputSource inputSource = new InputSource(inputStream);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inputSource.setSystemId("/company_home/dtds/");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and my XML file has &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!DOCTYPE product PUBLIC "-//Company//Product//EN" "../custom/dtd/product.dtd" &amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Dec 2010 05:56:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dtd-validation-in-alfresco/m-p/270427#M223557</guid>
      <dc:creator>abi2004</dc:creator>
      <dc:date>2010-12-19T05:56:11Z</dc:date>
    </item>
  </channel>
</rss>

