Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2011
    Location
    Europe
    Posts
    26
    Thanks
    20
    Thanked 0 Times in 0 Posts

    XML - Error on line 1: Content is not allowed in prolog

    Hello.

    I have error message in my debugger during retrieving "XML attributes"

    Error on line 1: Content is not allowed in prolog

    This is code

    Could you tell me what kind of error is it ?

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    
    <root version="14" libraryDocVersion="17">
      <node type="flow" id="19207f77-6c4b-4f1d-969b-4f5ff52bebb1">
        <attribute name="annotation"></attribute>
        <attribute name="categories">
          <collection type="set"/>
        </attribute>
        <attribute name="checkPointFlow">true</attribute>
        <attribute name="compatibleRuntimeContext">false</attribute>
        <attribute name="defaultContent">false</attribute>
        <attribute name="dharmaParentUuid">d655c4e4-6db8-4f43-b78d-fb89776ec05d</attribute>
        <attribute name="dharmaVersion">
          <node type="version">
            <attribute name="derivation">|90f13bcf-8934-456d-88d5-91f9ca9177a7#1.0|22967e68-8f96-4349-b593-af8ad040a102#5.0</attribute>
            <child name="revisions">
              <collection ordered="true" type="list">
                <node type="revision">
                  <attribute name="checkoutModificationNum">0</attribute>
                  <attribute name="commitUuid">eec83ce6-eeae-49c4-820c-7109f4a5b906</attribute>
                  <attribute name="modificationNum">5</attribute>
                  <attribute name="respositoryId">22967e68-8f96-4349-b593-af8ad040a102</attribute>
                </node>
              </collection>
            </child>
          </node>
        </attribute>
        <attribute name="hidden">false</attribute>
        <attribute name="historyCheckPointFlow">true</attribute>
        <attribute name="last_modified_by">wdomerac</attribute>
        <attribute name="modifiedTimestamp">1308210822418</attribute>
        <attribute name="name">typeCheck_v0.9.9.3-autoValues2</attribute>
        <attribute name="uuid">19207f77-6c4b-4f1d-969b-4f5ff52bebb1</attribute>
        <attribute name="version">0</attribute>
        <attribute name="visibleMask">55</attribute>
        <child name="accessControlList">
          <collection type="list">
            <node type="groupPermissions" id="b198ea2c-201a-4664-b56c-cf7408549336">
              <attribute name="last_modified_by">admin</attribute>
              <attribute name="modifiedTimestamp">1308127297149</attribute>
              <attribute name="perm">15</attribute>
              <attribute name="uuid">b198ea2c-201a-4664-b56c-cf7408549336</attribute>
              <child name="role">
                <ref pathref="44e1991f-ec1f-4af1-a2cb-dc344cb939ea"/>
              </child>
            </node>
          </collection>
        </child>
        <child name="availableResultExpressions">
          <collection type="list"/>
        </child>
        <child name="callouts">
          <collection type="list"/>
        </child>
        <child name="iconSpec">
          <node type="icon-spec" id="58d35bdd-0c0e-4e69-8e61-2881d39b9588">
            <attribute name="base-icon">flow.png</attribute>
            <attribute name="base-path">System</attribute>
            <attribute name="last_modified_by">admin</attribute>
            <attribute name="layers">
              <collection type="list"/>
            </attribute>
            <attribute name="modifiedTimestamp">1307106190558</attribute>
            <attribute name="read-only">false</attribute>
            <attribute name="uuid">58d35bdd-0c0e-4e69-8e61-2881d39b9588</attribute>
          </node>
        </child>
        <child name="inputs">
          <collection type="list">
            <node type="staticBinding" id="46586137-a235-408e-8786-6bbcbf12bfdd">
              <attribute name="annotation"></attribute>
              <attribute name="assignFromContext">true</attribute>
              <attribute name="assignToContext">true</attribute>
              <attribute name="inputSymbol">CLIENT</attribute>
              <attribute name="inputType">String</attribute>
              <attribute name="isList">false</attribute>
              <attribute name="isPersisted">true</attribute>
              <attribute name="last_modified_by">admin</attribute>
              <attribute name="listDelimiter">,</attribute>
              <attribute name="modifiedTimestamp">1308127389496</attribute>
              <attribute name="record">false</attribute>
              <attribute name="required">false</attribute>
              <attribute name="uuid">46586137-a235-408e-8786-6bbcbf12bfdd</attribute>
              <attribute name="value">TEST</attribute>
            </node>
            <node type="staticBinding" id="e2623ab7-55f0-44cb-8f62-73fa3c32e2f2">
              <attribute name="annotation"></attribute>
              <attribute name="assignFromContext">true</attribute>
              <attribute name="assignToContext">true</attribute>
              <attribute name="inputSymbol">LI</attribute>
              <attribute name="inputType">String</attribute>
              <attribute name="isList">false</attribute>
              <attribute name="isPersisted">true</attribute>
              <attribute name="last_modified_by">admin</attribute>
              <attribute name="listDelimiter">,</attribute>
              <attribute name="modifiedTimestamp">1308127410747</attribute>
              <attribute name="record">false</attribute>
              <attribute name="required">false</attribute>
              <attribute name="uuid">e2623ab7-55f0-44cb-8f62-73fa3c32e2f2</attribute>
              <attribute name="value">23562</attribute>
            </node>
            <node type="staticBinding" id="ed369ea5-fdaa-41aa-b491-c88f17bfff38">
              <attribute name="annotation"></attribute>
              <attribute name="assignFromContext">true</attribute>
              <attribute name="assignToContext">true</attribute>
              <attribute name="inputSymbol">NET</attribute>
              <attribute name="inputType">String</attribute>
              <attribute name="isList">false</attribute>
              <attribute name="isPersisted">true</attribute>
              <attribute name="last_modified_by">admin</attribute>
              <attribute name="listDelimiter">,</attribute>
              <attribute name="modifiedTimestamp">1308127422763</attribute>
              <attribute name="record">false</attribute>
              <attribute name="required">false</attribute>
              <attribute name="uuid">ed369ea5-fdaa-41aa-b491-c88f17bfff38</attribute>
              <attribute name="value">FRONTEND</attribute>
            </node>
          </collection>
        </child>
        <child name="possibleResponses">
          <collection type="list">
            <node type="opResponse" id="b478767a-65d8-4300-b7d6-cc3026c470f4">
              <attribute name="annotation"></attribute>
              <attribute name="isDefault">true</attribute>
              <attribute name="last_modified_by">admin</attribute>
              <attribute name="modifiedTimestamp">1307106868887</attribute>
              <attribute name="name">success</attribute>
              <attribute name="onFailure">false</attribute>
              <attribute name="type">RESOLVED</attribute>
              <attribute name="uuid">b478767a-65d8-4300-b7d6-cc3026c470f4</attribute>
            </node>
            <node type="opResponse" id="e72c94fd-2d03-4596-9924-3dfbc8b3e184">
              <attribute name="annotation"></attribute>
              <attribute name="isDefault">false</attribute>
              <attribute name="last_modified_by">admin</attribute>
              <attribute name="modifiedTimestamp">1307106869059</attribute>
              <attribute name="name">failure</attribute>
              <attribute name="onFailure">true</attribute>
              <attribute name="type">ERROR</attribute>
              <attribute name="uuid">e72c94fd-2d03-4596-9924-3dfbc8b3e184</attribute>
            </node>
          </collection>
        </child>
        <child name="resultExpression">
          <node type="expression" id="9b5fa354-1ea3-43ac-9cf6-22f3626cb0a8">
            <attribute name="annotation"></attribute>
            <attribute name="field-name">FailureMessage</attribute>
            <attribute name="last_modified_by">admin</attribute>
            <attribute name="modifiedTimestamp">1307106197559</attribute>
            <attribute name="name">FailureMessage</attribute>
            <attribute name="source-type">RAWRESULT</attribute>
            <attribute name="uuid">9b5fa354-1ea3-43ac-9cf6-22f3626cb0a8</attribute>
            <child name="filters">
              <collection type="list"/>
            </child>
          </node>
        </child>
        <child name="scriptlet">
          <node type="scriptlet" id="0875c3f7-3795-442c-8470-beb5683f6413">
            <attribute name="annotation"></attribute>
            <attribute name="defaultContent">false</attribute>
            <attribute name="last_modified_by">admin</attribute>
            <attribute name="modifiedTimestamp">1307106869544</attribute>
            <attribute name="name">Operation:typeCheck_v0.9.9.3-autoValues2 (19207f77-6c4b-4f1d-969b-4f5ff52bebb1)</attribute>
            <attribute name="type">RHINO</attribute>
            <attribute name="uuid">0875c3f7-3795-442c-8470-beb5683f6413</attribute>
            <child name="accessControlList">
              <collection type="list"/>
            </child>
          </node>
        </child>
        <child name="startSteps">
          <collection type="list">
            <ref idref="54025498-43f4-405d-bfa8-ebacbc66bfb1"/>
          </collection>
        </child>
        <child name="steps">
          <collection type="set">
            <node type="step" id="d8abc85d-71a6-4e65-9b00-661e34d04749">
              <attribute name="addResultToRunContext">false</attribute>
              <attribute name="annotation">&lt;pre&gt;Clears the value of a global flow variable, a flow variable. Global flow variables are the flow variables that are initialized before the topmost flow starts executing. By default the global context only contains system properties. Basically, the global context contains things such that all parent flows see them.
    
    Input Parameters:
    keyName - the name of the global flow variable to clear
    
    Responses:
    success - cleared the global flow variable
    
    Scriptlet Example:
    [$scriptletContext putGlobal: $keyName, null];&lt;/pre&gt;</attribute>
              <attribute name="checkPointStep">true</attribute>
              <attribute name="hideInbound">false</attribute>
              <attribute name="historyCheckPointStep">true</attribute>
              <attribute name="isCriticalStep">false</attribute>
              <attribute name="isNonBlocking">false</attribute>
              <attribute name="isParallelStep">false</attribute>
              <attribute name="isSimpleResponse">false</attribute>
              <attribute name="last_modified_by">admin</attribute>
              <attribute name="modifiedTimestamp">1307968207023</attribute>
              <attribute name="name">~~ Clear input Value ~~</attribute>
              <attribute name="opRef">
                <ref id="50189e3b-2082-4eec-ad8f-008270af7af3"/>
              </attribute>
              <attribute name="recordInHistory">false</attribute>
              <attribute name="recordPrimaryOutput">true</attribute>
              <attribute name="recordRawOutput">true</attribute>
              <attribute name="scriptResultStep">false</attribute>
              <attribute name="uuid">d8abc85d-71a6-4e65-9b00-661e34d04749</attribute>
              <attribute name="viewAttributes">&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
    &lt;java version="1.6.0_18" class="java.beans.XMLDecoder"&gt; 
     &lt;object class="java.util.HashMap"&gt; 
      &lt;void method="put"&gt; 
       &lt;string&gt;bounds&lt;/string&gt; 
       &lt;object class="com.iconclude.dharma.commons.util.EncodeableRectangle2D"&gt; 
        &lt;void property="height"&gt; 
         &lt;double&gt;100.0&lt;/double&gt; 
        &lt;/void&gt; 
        &lt;void property="width"&gt; 
         &lt;double&gt;100.0&lt;/double&gt; 
        &lt;/void&gt; 
        &lt;void property="x"&gt; 
         &lt;double&gt;1011.0&lt;/double&gt; 
        &lt;/void&gt; 
        &lt;void property="y"&gt; 
         &lt;double&gt;249.0&lt;/double&gt; 
        &lt;/void&gt; 
       &lt;/object&gt; 
      &lt;/void&gt; 
     &lt;/object&gt; 
    &lt;/java&gt; 
    </attribute>

    Best Regards

  • #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,286
    Thanks
    12
    Thanked 343 Times in 339 Posts
    I recommend using a CDATA section for that last tag:
    PHP Code:
              <attribute name="viewAttributes"><![CDATA[
    <?xml version="1.0" encoding="UTF-8"?> <!-- missing ? here --> 
    <java version="1.6.0_18" class="java.beans.XMLDecoder"> 
     <object class="java.util.HashMap"> 
      <void method="put"> 
       <string>bounds</string> 
       <object class="com.iconclude.dharma.commons.util.EncodeableRectangle2D"> 
        <void property="height"> 
         <double>100.0</double> 
        </void> 
        <void property="width"> 
         <double>100.0</double> 
        </void> 
        <void property="x"> 
         <double>1011.0</double> 
        </void> 
        <void property="y"> 
         <double>249.0</double> 
        </void> 
       </object> 
      </void> 
     </object> 
    </java> 
    ]]></attribute>
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •