Author Posts

May 16, 2018 at 3:55 am

I've been trying to provide updatable help for my module on GitHub.

In my psd1 file, I have the following:
HelpInfoURI = 'http://github.com/thedavecarroll/PoShEvents/blob/fac7fd7ac4f68127fba351c0cf5a1792ce24c47c/UpdatableHelp/'

The URL is the permalink for that location.

This is my HelpInfo.xml file:
https://github.com/thedavecarroll/PoShEvents/blob/master/UpdatableHelp/PoShEvents_c9c97755-98f3-4fcc-84e6-43075cc31abb_HelpInfo.xml

In that path, I have the two following files:
PoShEvents_c9c97755-98f3-4fcc-84e6-43075cc31abb_en-US_HelpContent.cab
PoShEvents_c9c97755-98f3-4fcc-84e6-43075cc31abb_HelpInfo.xml

I receive the following error:
Update-help : Failed to update Help for the module(s) 'PoShEvents' with UI culture(s) {en-US} : For security reasons
DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings
to Parse and pass the settings into XmlReader.Create method.

Is it possible to host UpdatableHelp on GitHub?

Any assistance would greatly be appreciated.

Dave

May 16, 2018 at 11:59 am

refer here:
https://stackoverflow.com/questions/13854068/dtd-prohibited-in-xml-document-exception

Does your document contain anything like that? If so, you should be able to just remove the doctype declaration.

EDIT: also, your link in the file(s) here: http://schemas.microsoft.com/powershell/help/2010/05 no longer exists, so you may also need to update the link reference.