Clarity

 View Only
  • 1.  Input document contains Illegal HTML character for object contentPack

    Posted Aug 05, 2020 05:33 AM
    HI all,

    I am trying to xog in a static dependent lookup. But getting the Error : "Input document contains Illegal HTML character for object contentPack" Ihave tried checking in community but removing the nls description tag is an arduous task since there are many tags.
    I would like to know what are such HTML characters which may  cause this issue. So that we can make modifications in our xml other than nls tags.

    Thank you
    Vinay


  • 2.  RE: Input document contains Illegal HTML character for object contentPack

    Posted Aug 05, 2020 08:21 AM
    file with a browser and notepad++ to see if you get the line number and position of the illegal character.


  • 3.  RE: Input document contains Illegal HTML character for object contentPack

    Posted Aug 05, 2020 08:30 AM
    sorry..couldn't get you..Could you please explain again what needs to be done..


  • 4.  RE: Input document contains Illegal HTML character for object contentPack
    Best Answer

    Posted Aug 05, 2020 11:07 AM
    Say I have this little xml file
    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_contentPack.xsd">
    <Header version="8.0" externalSource="xog" action="write" objectType="contentPack"/>
    <contentPack update="true">

    <lookups update="true">
    <staticLookup code="SEC_OBJECT_TYPE" sortStyle="alphanumeric" source="niku.com" status="active" update="true">
    <nls description="Objekttyp Sicherheit" languageCode="de" name="Objekttyp Sicherheit"/>
    <nls description="Security Object Type" languageCode="en" name="Security Object Type"/>
    <nls description="Tipo de Objeto de Seguridad" languageCode="es" name="Tipo de Objeto de Seguridad"/>
    <nls description="Type d&apos;objet de sécurité" languageCode="fr" name="Type d&apos;objet de sécurité"/>
    <nls description="?????? ?????? ???" languageCode="ja" name="?????? ?????? ???"/>
    <lookupValue code="BUTTON" sortOrder="5" status="active">
    <nls description="Schaltfläche" languageCode="de" name="Schaltfläche"/>
    <nls description="Button" languageCode="en" name="Button"/>
    <nls description="Botón" languageCode="es" name="Botón"/>
    <nls description="Bouton" languageCode="fr" name="Bouton"/>
    <nls description="???" languageCode="ja" name="???"/>
    </lookupValue>
    </staticLookup>
    </lookups>
    </contentPack>
    </NikuDataBus>

    If I open it in Firefox it displays nicely
    Now if I remove the line
    </staticLookup>

    Firefox displays

    which helps in locating the error.
     tab
    If I recall correctly the most typical illegal character is vertical tab.
    To avoid those do not use an editor which creates vertical tabs or clean your file in notepad by removing all blanck lines.