Clarity

  • 1.  The Processing instruction target matching "[xX] [mM] [lL]" is not allowed

    Posted Aug 27, 2015 03:30 AM

    Hi, I am accessing Clarity application via citrix and when I am trying to run a basic xml file it is throwing error:

     

    The Processing instruction target matching "[xX] [mM] [lL]" is not allowed. I referred few threads on the same but did not understand much.

     

    Please help on this.

     

     

    File:

     

    <?xml version="1.0" encoding="UTF-8"?>

    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="/niku/xog/src/webroot/WEB-INF/xog/xsd/nikuxog_read.xsd">

      <Header version="7.5.1" action="read" objectType="skill" externalSource="NIKU">

      </Header>

      <Query>

         <Filter name="isActive" criteria="EQUALS">true</Filter>

      </Query>

    </NikuDataBus>

     

    Regards,

    Uruj



  • 2.  Re: The Processing instruction target matching "[xX] [mM] [lL]" is not allowed
    Best Answer

    Posted Aug 27, 2015 08:07 AM

    Hello uruj, are you able to replicate it not using CITRIX?, Citrix is unsupported according my knowledge, so it's important verify if your code works as expected under other execution environment.

    Also review this information:

     

    The workaround is to remove the first line from the XML file that contains the XML processing instruction (i.e. the <?xml ... ?> line).  This defect isn't published yet as a knowledge article on the website, when it is, it would contain the following:

     

    CLRT-73713 XOG Write returns error if it contains an XML processing instruction at the start (<?xml ... ?>)

    Description:

    XML files typically begin with a processing instruction that identifies the file as XML. The example XOG files provided with the XOG client also include them. They look like this:

     

    If you want entire answer, validate if this thread can be useful:

    XOG POST failed ParseError

     

    Thanks & Regards,



  • 3.  Re: The Processing instruction target matching "[xX] [mM] [lL]" is not allowed

    Posted Aug 28, 2015 02:46 AM

    It seems XOG is not allowed in my env. via URL. How is this implemented; I am supposed to login to server and do by cmd prompt.



  • 4.  Re: The Processing instruction target matching "[xX] [mM] [lL]" is not allowed

    Posted Aug 28, 2015 03:56 AM

    You need not login to the server to perform the xog.

     

    1. Download the XOG exe from Clarity, and extract the contents on your local computer

     

    2. Put the correct info in the .properties file in the /bin folder for the below -

    servername

    portnumber

    sslenabled

    output

    input

     

    3. Create a shortcut command prompt with the target as the path till the bin folder

     

    4. Create a read or write xml file and save at a destination, e.g. location for the input file as defined in step 2.

     

    5. Run the command   xog -propertyfile <propertyfile name>.properties

     

    NJ



  • 5.  Re: The Processing instruction target matching "[xX] [mM] [lL]" is not allowed

    Posted Aug 28, 2015 03:57 AM

    Also, check this -

    Installation of XML open gate way in 13.3

    https://communities.ca.com/message/113522821#113522821

     

    NJ



  • 6.  Re: The Processing instruction target matching "[xX] [mM] [lL]" is not allowed

    Posted Aug 28, 2015 03:59 AM

    And, this -

     

    XOG on command line if SSL is enabled

    https://communities.ca.com/message/13752744#13752744

     

     

    NJ



  • 7.  Re: The Processing instruction target matching "[xX] [mM] [lL]" is not allowed

    Posted Aug 28, 2015 04:36 AM

    It worked when I removed line <?xml version="1.0" encoding="UTF-8"?>.!!!

     

     

    @NJ: I do not have access to folders so I cant do byanother method!



  • 8.  Re: The Processing instruction target matching "[xX] [mM] [lL]" is not allowed

    Posted Aug 28, 2015 04:37 AM

    WHY??



  • 9.  Re: The Processing instruction target matching "[xX] [mM] [lL]" is not allowed

    Posted Aug 28, 2015 04:50 AM

    Uruj wrote:

     

    WHY??

    Did you even read the answers that your original post got - that explains "WHY" and the thread linked to by Nicolas has more detail. 



  • 10.  Re: The Processing instruction target matching "[xX] [mM] [lL]" is not allowed

    Posted Aug 28, 2015 06:32 AM

    Ohh Yes David, mistake.. didn't read properly!! Thanks for pointing out!!