diwakar.narayanaswamy | 26 Nov 16:07 2014

Re: [MarkLogic Dev General] Relational operators on contraints

Hi Dave,
    That didn't work either. Find below the code and response.

import module namespace search ="http://marklogic.com/appservices/search"
    at "/MarkLogic/appservices/search/search.xqy";
let $options := <options xmlns="http://marklogic.com/appservices/search">

   <constraint xmlns = "http://marklogic.com/appservices/search" name="date">
		<range type="xs:gYear" facet="true">
			<bucket lt="1930" ge="1920" name="1920s">1920s</bucket>
			<bucket lt="1940" ge="1930" name="1930s">1930s</bucket>
			<bucket lt="1950" ge="1940" name="1940s">1940s</bucket>
			<bucket lt="1960" ge="1950" name="1950s">1950s</bucket>
			<bucket lt="1970" ge="1960" name="1960s">1960s</bucket>
			<bucket lt="1980" ge="1970" name="1970s">1970s</bucket>
			<bucket lt="1990" ge="1980" name="1980s">1980s</bucket>
			<bucket lt="2000" ge="1990" name="1990s">1990s</bucket>
			<bucket ge="2000" name="2000s">2000s</bucket>
			<facet-option>limit=15</facet-option>			
			<element ns="XXXXXXXX" name="history-date"/>      
      		</range>
	</constraint>   
   <additional-query xmlns="http://marklogic.com/appservices/search"><cts:collection-query xmlns:cts="http://marklogic.com/cts">
       <cts:uri>ALL</cts:uri>
     </cts:collection-query></additional-query>
   <return-results>true</return-results>
   <return-facets>true</return-facets>
   <term>
     <term-option>unstemmed</term-option>
   </term>
(Continue reading)

diwakar.narayanaswamy | 26 Nov 15:32 2014

Re: [MarkLogic Dev General] Relational operators on contraints


Hi Dave,
                I did try inequality operators earlier as well. But it did not work out. Please find the scr.shot.

Thanks,
Diwakar N

________________________________________
From: general-bounces@...
<general-bounces@...rklogic.com> on behalf of
general-request@... <general-request@...>
Sent: 26 November 2014 19:13
To: general@...
Subject: General Digest, Vol 125, Issue 40

Send General mailing list submissions to
        general@...

To subscribe or unsubscribe via the World Wide Web, visit
        http://developer.marklogic.com/mailman/listinfo/general
or, via email, send a message with subject or body 'help' to
        general-request@...

You can reach the person managing the list at
        general-owner@...

When replying, please edit your Subject line so it is more specific
than "Re: Contents of General digest..."

Today's Topics:
(Continue reading)

Dinesh | 21 Nov 09:35 2014
Picon

[MarkLogic Dev General] ASP.NET web application session handling in MarkLogic

Hello All,

 

Is there any way to handle session in Marklogic server as same like Sql Server State?

 

Load Balancer have implemented between two servers for ASP.NET web application. This web application is used database as Marklogic. Each server have setup separate instance of web application and Marklogic database. The MarkLogic databases in cluster. In Web application, Session needs to handle using out of process state. Is there any way to handle session in Marklogic Server to work with load balancer?

 

Regards,

Dinesh

<div><div class="WordSection1">
<p class="MsoNormal"><span lang="EN-IN">Hello All,<p></p></span></p>
<p class="MsoNormal"><span lang="EN-IN"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-IN">Is there any way to handle session in Marklogic server as same like Sql Server State?<p></p></span></p>
<p class="MsoNormal"><span lang="EN-IN"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-IN">Load Balancer have implemented between two servers for ASP.NET web application. This web application is used database as Marklogic. Each server have setup separate instance of web application and Marklogic database. The MarkLogic databases in cluster. In Web application, Session needs to handle using out of process state. Is there any way to handle session in Marklogic Server to work with load balancer? <p></p></span></p>
<p class="MsoNormal"><span lang="EN-IN"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-IN">Regards,<p></p></span></p>
<p class="MsoNormal"><span lang="EN-IN">Dinesh<p></p></span></p>
</div></div>
Will Hawes | 21 Nov 08:35 2014
Picon

[MarkLogic Dev General] request-time in xdmp:server-status output

http://docs.marklogic.com/xdmp:server-status states the following:

request-time
    1 minute avarage of request time for this server.

I expected this to be measured in seconds, but I'm seeing values in
the range 4-5, where load testing shows requests taking an average of
a few hundred milliseconds.

Is request-time actually showing hundreds of milliseconds? How is it calculated?

Thanks,
Will
Kapoor, Pragya | 21 Nov 05:34 2014

[MarkLogic Dev General] Namespaces are getting removed

Hi,


I am using men:node* function to update in-memory xml.

The code is removing the namespaces of all elements of the in-memory xml.


Code:

xquery version "1.0-ml";
import module namespace mem = "http://xqdev.com/in-mem-update"
    at  "/rest-apis/utils/mem.xqy";

declare variable $transId := 'test';
let $amd :=  xdmp:invoke-function(
                            function() {
                              (fn:doc('/processing/test/amdDocs/test.xml'))
                            } ,
                    <options xmlns="xdmp:eval">
                      <database>{xdmp:database("Ingestion")}</database>
                    </options>
                    )
let $doc := fn:doc('/docs/test.xml')
  let $elements := $amd//*[ <at> ID]
   let $doc :=
   for $element in $elements
   let $docElements := $doc//*[ <at> ID = $element/ <at> ID]
    return
    if($element/ <at> ID = $docElements/ <at> ID) then 
         (xdmp:set($doc,mem:node-replace($docElements, $element) ),
          $doc) 
    else 
      let $amdParent := $element/..
      let $docParent := $doc//*[ <at> Code = $amdParent/ <at> Code]
      return 
    (xdmp:set($doc, mem:node-insert-child($docParent, $element)),
          $doc) 
    let $validDocs :=  $doc[fn:last()]
   return $validDocs
   
   Data:
   let $amd := <MAG:Document xmlns:NAV100PP="NAV100PP" xmlns:SE100="SE100" xmlns:CSD100CP="CSD100CP"
xmlns:CAR100CP="CAR100CP"
xmlns:PET100="PET100"
xmlns:IM100CP="IM100CP"
xmlns:OP100="OP100"
xmlns:OF100PP="OF100PP"
xmlns:VAL100CP="VAL100CP"
xmlns:MIC100="MIC100"
xmlns:CEM100="CEM100"
xmlns:TH100CP="TH100CP"
xmlns:MRA="MRA"
xmlns:ECOLL100PP="ECOLL100PP"
xmlns:NAV100CP="NAV100CP"
xmlns:AF100="AF100"
xmlns:AD100="AD100"
xmlns:EOD100-4="EOD100-4"
xmlns:AP100="AP100"
xmlns:OF100CP="OF100CP"
xmlns:THRW100PP="THRW100PP"
xmlns:EOD100-3="EOD100-3"
xmlns:CEM100PP="CEM100PP"
xmlns:TH100="TH100"
xmlns:OES100PP="OES100PP"
xmlns:MSLA="MSLA"
xmlns:ECOLL100CP="ECOLL100CP"
xmlns:IME100PP="IME100PP"
xmlns:AF100PP="AF100PP"
xmlns:AD100PP="AD100PP"
xmlns:AT100PP="AT100PP"
xmlns:HIC100="HIC100"
xmlns:TAX100PP="TAX100PP"
xmlns:ROC100="ROC100"
xmlns:SUB100PP="SUB100PP"
xmlns:THRW100CP="THRW100CP"
xmlns:IR101="IR101"
xmlns:CEM100CP="CEM100CP"
xmlns:SIN100="SIN100"
xmlns:OES100CP="OES100CP"
xmlns:IME100CP="IME100CP"
xmlns:AF100CP="AF100CP"
xmlns:AD100CP="AD100CP"
xmlns:AT100CP="AT100CP"
xmlns:ANX100-1="ANX100-1"
xmlns:TAX100CP="TAX100CP"
xmlns:ROC100PP="ROC100PP"
xmlns:SUB100CP="SUB100CP"
xmlns:CTT100="CTT100"
xmlns:ATE100="ATE100"
xmlns:DD100="DD100"
xmlns:CRC100PP="CRC100PP"
xmlns:IME100="IME100"
xmlns:AL100="AL100"
xmlns:PA100="PA100"
xmlns:ANX100-3="ANX100-3"
xmlns:TAX100="TAX100"
xmlns:ROC100CP="ROC100CP"
xmlns:CPRE100="CPRE100"
xmlns:OCTH100PP="OCTH100PP"
xmlns:AET100PP="AET100PP"
xmlns:DD100PP="DD100PP"
xmlns:DN100PP="DN100PP"
xmlns:CRC100CP="CRC100CP"
xmlns:KM100="KM100"
xmlns:AL100PP="AL100PP"
xmlns:PA100PP="PA100PP"
xmlns:EOD100-2="EOD100-2"
xmlns:FTH100PP="FTH100PP"
xmlns:REP100PP="REP100PP"
xmlns:CA100="CA100"
xmlns:SIO100PP="SIO100PP"
xmlns:OCTH100CP="OCTH100CP"
xmlns:CPRE100PP="CPRE100PP"
xmlns:AET100CP="AET100CP"
xmlns:DD100CP="DD100CP"
xmlns:DN100CP="DN100CP"
xmlns:UPC100="UPC100"
xmlns:KM100PP="KM100PP"
xmlns:AL100CP="AL100CP"
xmlns:PA100CP="PA100CP"
xmlns:EHP100PP="EHP100PP"
xmlns:TER100="TER100"
xmlns:FTH100CP="FTH100CP"
xmlns:REP100CP="REP100CP"
xmlns:ST100="ST100"
xmlns:SIO100CP="SIO100CP"
xmlns:CPRE100CP="CPRE100CP"
xmlns:RD100PP="RD100PP"
xmlns:PN100="PN100"
xmlns:KM100CP="KM100CP"
xmlns:NA100="NA100"
xmlns:MB100PP="MB100PP"
xmlns:EHP100CP="EHP100CP"
xmlns:TER100PP="TER100PP"
xmlns:REP100="REP100"
xmlns:CD100PP="CD100PP"
xmlns:MSFTA="MSFTA"
xmlns:ROU100PP="ROU100PP"
xmlns:RD100CP="RD100CP"
xmlns:GOV100="GOV100"
xmlns:CSD100="CSD100"
xmlns:CC100PP="CC100PP"
xmlns:NA100PP="NA100PP"
xmlns:MB100="MB100"
xmlns:FMT100PP="FMT100PP"
xmlns:TER100CP="TER100CP"
xmlns:AET100="AET100"
xmlns:CD100CP="CD100CP"
xmlns:DA100PP="DA100PP"
xmlns:GMRA="GMRA"
xmlns:ROU100CP="ROU100CP"
xmlns:RD100="RD100"
xmlns:SE100PP="SE100PP"
xmlns:ATE_A100="ATE_A100"
xmlns:CC100CP="CC100CP"
xmlns:NA100CP="NA100CP"
xmlns:MB100CP="MB100CP"
xmlns:ANX100-2="ANX100-2"
xmlns:FMT100CP="FMT100CP"
xmlns:TC100="TC100"
xmlns:CD100="CD100"
xmlns:DA100CP="DA100CP"
xmlns:NAV100="NAV100"
xmlns:SE100CP="SE100CP"
xmlns:CSD100PP="CSD100PP"
xmlns:CAR100PP="CAR100PP"
xmlns:IM100PP="IM100PP"
xmlns:CC100="CC100"
xmlns:MISC100="MISC100"
xmlns:OF100="OF100"
xmlns:VAL100PP="VAL100PP"
xmlns:TEM100="TEM100"
xmlns:OTP100="OTP100"
xmlns:TH100PP="TH100PP"
xmlns:MAG="ISDA">
 <MAG:MetaInfo>
<MAG:CollectionNo>4043</MAG:CollectionNo>
<!-- Amendment document -->
<MAG:DocumentType>AGRT-AMD-DOC</MAG:DocumentType>
<MAG:AgreementDate>2015-03-27</MAG:AgreementDate>
<MAG:DocumentState>BAU</MAG:DocumentState>
<MAG:PdfPageRange>24-32</MAG:PdfPageRange>
 </MAG:MetaInfo>
 <MAG:Body>
<MAG:PartiesMisc>
<CP100:PartyDetails xmlns:CP100="CP100" Code="CP100">
 
  <CP100CP:Counterparties xmlns:CP100CP="CP100CP"  Code="CP100CP">
<CP100CP:Counterparty ID='123'>
<CP100CP:Name PageNo="3" LineNo="21">INNODATA  SERVICES, INC.</CP100CP:Name>
<CP100CP:Lei PageNo="3" LineNo="21">eeeee</CP100CP:Lei>
<CP100CP:EntityType PageNo="3" LineNo="21">CORPORATION</CP100CP:EntityType>
<CP100CP:JurisdictionOrganisation PageNo="3" LineNo="21">Florida</CP100CP:JurisdictionOrganisation>
<CP100CP:AgentName PageNo="3" LineNo="11">mmmmm</CP100CP:AgentName>
<CP100CP:PartyStatus PageNo="3" LineNo="21">Terminated</CP100CP:PartyStatus>
<CP100CP:DF2Questionnaire>
</CP100CP:DF2Questionnaire>
<CP100CP:EMIRQuestionnaire>
</CP100CP:EMIRQuestionnaire>
 </CP100CP:Counterparty>
  
 </CP100CP:Counterparties>
</CP100:PartyDetails>
        </MAG:PartiesMisc>
<GOV100:GoverningLaw  ID='2' Code="GOV100">
<!-- Changed -->
  <GOV100:Governing_Law  PageNo="11" LineNo="14">Alabama</GOV100:Governing_Law>
  
</GOV100:GoverningLaw>
 </MAG:Body>
  </MAG:Document>
   let $doc := <MAG:Document xmlns:NAV100PP="NAV100PP" xmlns:SE100="SE100" xmlns:CSD100CP="CSD100CP"
xmlns:CAR100CP="CAR100CP"
xmlns:PET100="PET100"
xmlns:IM100CP="IM100CP"
xmlns:OP100="OP100"
xmlns:OF100PP="OF100PP"
xmlns:VAL100CP="VAL100CP"
xmlns:MIC100="MIC100"
xmlns:CEM100="CEM100"
xmlns:TH100CP="TH100CP"
xmlns:MRA="MRA"
xmlns:ECOLL100PP="ECOLL100PP"
xmlns:NAV100CP="NAV100CP"
xmlns:AF100="AF100"
xmlns:AD100="AD100"
xmlns:EOD100-4="EOD100-4"
xmlns:AP100="AP100"
xmlns:OF100CP="OF100CP"
xmlns:THRW100PP="THRW100PP"
xmlns:EOD100-3="EOD100-3"
xmlns:CEM100PP="CEM100PP"
xmlns:TH100="TH100"
xmlns:OES100PP="OES100PP"
xmlns:MSLA="MSLA"
xmlns:ECOLL100CP="ECOLL100CP"
xmlns:IME100PP="IME100PP"
xmlns:AF100PP="AF100PP"
xmlns:AD100PP="AD100PP"
xmlns:AT100PP="AT100PP"
xmlns:HIC100="HIC100"
xmlns:TAX100PP="TAX100PP"
xmlns:ROC100="ROC100"
xmlns:SUB100PP="SUB100PP"
xmlns:THRW100CP="THRW100CP"
xmlns:IR101="IR101"
xmlns:CEM100CP="CEM100CP"
xmlns:SIN100="SIN100"
xmlns:OES100CP="OES100CP"
xmlns:IME100CP="IME100CP"
xmlns:AF100CP="AF100CP"
xmlns:AD100CP="AD100CP"
xmlns:AT100CP="AT100CP"
xmlns:ANX100-1="ANX100-1"
xmlns:TAX100CP="TAX100CP"
xmlns:ROC100PP="ROC100PP"
xmlns:SUB100CP="SUB100CP"
xmlns:CTT100="CTT100"
xmlns:ATE100="ATE100"
xmlns:DD100="DD100"
xmlns:CRC100PP="CRC100PP"
xmlns:IME100="IME100"
xmlns:AL100="AL100"
xmlns:PA100="PA100"
xmlns:ANX100-3="ANX100-3"
xmlns:TAX100="TAX100"
xmlns:ROC100CP="ROC100CP"
xmlns:CPRE100="CPRE100"
xmlns:OCTH100PP="OCTH100PP"
xmlns:AET100PP="AET100PP"
xmlns:DD100PP="DD100PP"
xmlns:DN100PP="DN100PP"
xmlns:CRC100CP="CRC100CP"
xmlns:KM100="KM100"
xmlns:AL100PP="AL100PP"
xmlns:PA100PP="PA100PP"
xmlns:EOD100-2="EOD100-2"
xmlns:FTH100PP="FTH100PP"
xmlns:REP100PP="REP100PP"
xmlns:CA100="CA100"
xmlns:SIO100PP="SIO100PP"
xmlns:OCTH100CP="OCTH100CP"
xmlns:CPRE100PP="CPRE100PP"
xmlns:AET100CP="AET100CP"
xmlns:DD100CP="DD100CP"
xmlns:DN100CP="DN100CP"
xmlns:UPC100="UPC100"
xmlns:KM100PP="KM100PP"
xmlns:AL100CP="AL100CP"
xmlns:PA100CP="PA100CP"
xmlns:EHP100PP="EHP100PP"
xmlns:TER100="TER100"
xmlns:FTH100CP="FTH100CP"
xmlns:REP100CP="REP100CP"
xmlns:ST100="ST100"
xmlns:SIO100CP="SIO100CP"
xmlns:CPRE100CP="CPRE100CP"
xmlns:RD100PP="RD100PP"
xmlns:PN100="PN100"
xmlns:KM100CP="KM100CP"
xmlns:NA100="NA100"
xmlns:MB100PP="MB100PP"
xmlns:EHP100CP="EHP100CP"
xmlns:TER100PP="TER100PP"
xmlns:REP100="REP100"
xmlns:CD100PP="CD100PP"
xmlns:MSFTA="MSFTA"
xmlns:ROU100PP="ROU100PP"
xmlns:RD100CP="RD100CP"
xmlns:GOV100="GOV100"
xmlns:CSD100="CSD100"
xmlns:CC100PP="CC100PP"
xmlns:NA100PP="NA100PP"
xmlns:MB100="MB100"
xmlns:FMT100PP="FMT100PP"
xmlns:TER100CP="TER100CP"
xmlns:AET100="AET100"
xmlns:CD100CP="CD100CP"
xmlns:DA100PP="DA100PP"
xmlns:GMRA="GMRA"
xmlns:ROU100CP="ROU100CP"
xmlns:RD100="RD100"
xmlns:SE100PP="SE100PP"
xmlns:ATE_A100="ATE_A100"
xmlns:CC100CP="CC100CP"
xmlns:NA100CP="NA100CP"
xmlns:MB100CP="MB100CP"
xmlns:ANX100-2="ANX100-2"
xmlns:FMT100CP="FMT100CP"
xmlns:TC100="TC100"
xmlns:CD100="CD100"
xmlns:DA100CP="DA100CP"
xmlns:NAV100="NAV100"
xmlns:SE100CP="SE100CP"
xmlns:CSD100PP="CSD100PP"
xmlns:CAR100PP="CAR100PP"
xmlns:IM100PP="IM100PP"
xmlns:CC100="CC100"
xmlns:MISC100="MISC100"
xmlns:OF100="OF100"
xmlns:VAL100PP="VAL100PP"
xmlns:TEM100="TEM100"
xmlns:OTP100="OTP100"
xmlns:TH100PP="TH100PP"
xmlns:MAG="ISDA">
 <MAG:MetaInfo>
<MAG:CollectionNo>4043</MAG:CollectionNo>
<!-- Amendment document -->
<MAG:DocumentType>AGRT-AMD-DOC</MAG:DocumentType>
<MAG:AgreementDate>2015-03-27</MAG:AgreementDate>
<MAG:DocumentState>BAU</MAG:DocumentState>
<MAG:PdfPageRange>24-32</MAG:PdfPageRange>
 </MAG:MetaInfo>
 <MAG:Body>
<MAG:PartiesMisc>
<CP100:PartyDetails xmlns:CP100="CP100" Code="CP100">
 
  <CP100CP:Counterparties xmlns:CP100CP="CP100CP" Code="CP100CP">
<CP100CP:Counterparty ID = '123'>
<CP100CP:Name PageNo="3" LineNo="21">INNODATA aa</CP100CP:Name>
<CP100CP:Lei PageNo="3" LineNo="21">eeeee1</CP100CP:Lei>
<CP100CP:EntityType PageNo="3" LineNo="21">CORPORATION</CP100CP:EntityType>
<CP100CP:JurisdictionOrganisation PageNo="3" LineNo="21">Florida</CP100CP:JurisdictionOrganisation>
<CP100CP:AgentName PageNo="3" LineNo="11">mmmmm</CP100CP:AgentName>
<CP100CP:PartyStatus PageNo="3" LineNo="21">Terminated</CP100CP:PartyStatus>
<CP100CP:DF2Questionnaire>
</CP100CP:DF2Questionnaire>
<CP100CP:EMIRQuestionnaire>
</CP100CP:EMIRQuestionnaire>
 </CP100CP:Counterparty>
  
 </CP100CP:Counterparties>
</CP100:PartyDetails>
        </MAG:PartiesMisc>
<GOV100:GoverningLaw  ID='2' Code="GOV100">
<!-- Changed -->
  <GOV100:Governing_Law  PageNo="11" LineNo="14">New York</GOV100:Governing_Law>
  
</GOV100:GoverningLaw>
 </MAG:Body>
  </MAG:Document>​

Please help


Thanks

Pragya

"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
<div>
<div>
<p>Hi,<br></p>
<p><br></p>
<p>I am using men:node* function to update in-memory xml.<br></p>
<p>The code&nbsp;is removing the namespaces of all elements of the in-memory xml.<br></p>
<p><br></p>
<p>Code:<br></p>
<div></div>
<div>
<div>xquery version "1.0-ml";</div>
<div>import module namespace mem = "http://xqdev.com/in-mem-update"</div>
<div>&nbsp; &nbsp; at &nbsp;"/rest-apis/utils/mem.xqy";</div>
<div><br></div>
<div>declare variable $transId := 'test';</div>
<div>let $amd := &nbsp;xdmp:invoke-function(</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function() {</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (fn:doc('/processing/test/amdDocs/test.xml'))</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } ,</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;options xmlns="xdmp:eval"&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;database&gt;{xdmp:database("Ingestion")}&lt;/database&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/options&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )</div>
<div>let $doc := fn:doc('/docs/test.xml')</div>
<div>&nbsp; let $elements := $amd//*[ <at> ID]</div>
<div>&nbsp; &nbsp;let $doc :=</div>
<div>&nbsp; &nbsp;for $element in $elements</div>
<div>&nbsp; &nbsp;let $docElements := $doc//*[ <at> ID = $element/ <at> ID]</div>
<div>&nbsp; &nbsp; return</div>
<div>&nbsp; &nbsp; if($element/ <at> ID = $docElements/ <at> ID) then&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(xdmp:set($doc,mem:node-replace($docElements, $element) ),</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $doc)&nbsp;</div>
<div>&nbsp; &nbsp; else&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; let $amdParent := $element/..</div>
<div>&nbsp; &nbsp; &nbsp; let $docParent := $doc//*[ <at> Code = $amdParent/ <at> Code]</div>
<div>&nbsp; &nbsp; &nbsp; return&nbsp;</div>
<div>&nbsp; &nbsp; (xdmp:set($doc, mem:node-insert-child($docParent, $element)),</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $doc)&nbsp;</div>
<div>&nbsp; &nbsp; let $validDocs := &nbsp;$doc[fn:last()]</div>
<div>&nbsp; &nbsp;return $validDocs</div>
<div>&nbsp; &nbsp;</div>
<div>&nbsp; &nbsp;Data:</div>
<div>&nbsp; &nbsp;let $amd := &lt;MAG:Document xmlns:NAV100PP="NAV100PP" xmlns:SE100="SE100" xmlns:CSD100CP="CSD100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CAR100CP="CAR100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:PET100="PET100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IM100CP="IM100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OP100="OP100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OF100PP="OF100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:VAL100CP="VAL100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MIC100="MIC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CEM100="CEM100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TH100CP="TH100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MRA="MRA"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ECOLL100PP="ECOLL100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:NAV100CP="NAV100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AF100="AF100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AD100="AD100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:EOD100-4="EOD100-4"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AP100="AP100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OF100CP="OF100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:THRW100PP="THRW100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:EOD100-3="EOD100-3"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CEM100PP="CEM100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TH100="TH100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OES100PP="OES100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MSLA="MSLA"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ECOLL100CP="ECOLL100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IME100PP="IME100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AF100PP="AF100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AD100PP="AD100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AT100PP="AT100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:HIC100="HIC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TAX100PP="TAX100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ROC100="ROC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SUB100PP="SUB100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:THRW100CP="THRW100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IR101="IR101"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CEM100CP="CEM100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SIN100="SIN100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OES100CP="OES100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IME100CP="IME100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AF100CP="AF100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AD100CP="AD100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AT100CP="AT100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ANX100-1="ANX100-1"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TAX100CP="TAX100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ROC100PP="ROC100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SUB100CP="SUB100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CTT100="CTT100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ATE100="ATE100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DD100="DD100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CRC100PP="CRC100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IME100="IME100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AL100="AL100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:PA100="PA100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ANX100-3="ANX100-3"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TAX100="TAX100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ROC100CP="ROC100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CPRE100="CPRE100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OCTH100PP="OCTH100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AET100PP="AET100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DD100PP="DD100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DN100PP="DN100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CRC100CP="CRC100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:KM100="KM100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AL100PP="AL100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:PA100PP="PA100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:EOD100-2="EOD100-2"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:FTH100PP="FTH100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:REP100PP="REP100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CA100="CA100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SIO100PP="SIO100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OCTH100CP="OCTH100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CPRE100PP="CPRE100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AET100CP="AET100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DD100CP="DD100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DN100CP="DN100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:UPC100="UPC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:KM100PP="KM100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AL100CP="AL100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:PA100CP="PA100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:EHP100PP="EHP100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TER100="TER100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:FTH100CP="FTH100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:REP100CP="REP100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ST100="ST100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SIO100CP="SIO100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CPRE100CP="CPRE100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:RD100PP="RD100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:PN100="PN100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:KM100CP="KM100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:NA100="NA100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MB100PP="MB100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:EHP100CP="EHP100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TER100PP="TER100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:REP100="REP100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CD100PP="CD100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MSFTA="MSFTA"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ROU100PP="ROU100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:RD100CP="RD100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:GOV100="GOV100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CSD100="CSD100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CC100PP="CC100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:NA100PP="NA100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MB100="MB100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:FMT100PP="FMT100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TER100CP="TER100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AET100="AET100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CD100CP="CD100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DA100PP="DA100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:GMRA="GMRA"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ROU100CP="ROU100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:RD100="RD100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SE100PP="SE100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ATE_A100="ATE_A100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CC100CP="CC100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:NA100CP="NA100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MB100CP="MB100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ANX100-2="ANX100-2"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:FMT100CP="FMT100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TC100="TC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CD100="CD100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DA100CP="DA100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:NAV100="NAV100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SE100CP="SE100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CSD100PP="CSD100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CAR100PP="CAR100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IM100PP="IM100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CC100="CC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MISC100="MISC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OF100="OF100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:VAL100PP="VAL100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TEM100="TEM100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OTP100="OTP100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TH100PP="TH100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MAG="ISDA"&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;MAG:MetaInfo&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:CollectionNo&gt;4043&lt;/MAG:CollectionNo&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;!-- Amendment document --&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:DocumentType&gt;AGRT-AMD-DOC&lt;/MAG:DocumentType&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:AgreementDate&gt;2015-03-27&lt;/MAG:AgreementDate&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:DocumentState&gt;BAU&lt;/MAG:DocumentState&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:PdfPageRange&gt;24-32&lt;/MAG:PdfPageRange&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;/MAG:MetaInfo&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;MAG:Body&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:PartiesMisc&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100:PartyDetails xmlns:CP100="CP100" Code="CP100"&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp; &lt;CP100CP:Counterparties xmlns:CP100CP="CP100CP" &nbsp;Code="CP100CP"&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:Counterparty ID='123'&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:Name PageNo="3" LineNo="21"&gt;INNODATA &nbsp;SERVICES, INC.&lt;/CP100CP:Name&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:Lei PageNo="3" LineNo="21"&gt;eeeee&lt;/CP100CP:Lei&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:EntityType PageNo="3" LineNo="21"&gt;CORPORATION&lt;/CP100CP:EntityType&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:JurisdictionOrganisation PageNo="3" LineNo="21"&gt;Florida&lt;/CP100CP:JurisdictionOrganisation&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:AgentName PageNo="3" LineNo="11"&gt;mmmmm&lt;/CP100CP:AgentName&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:PartyStatus PageNo="3" LineNo="21"&gt;Terminated&lt;/CP100CP:PartyStatus&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:DF2Questionnaire&gt;</div>
<div><span class="Apple-tab-span"></span></div>
<div>
<span class="Apple-tab-span"></span>&lt;/CP100CP:DF2Questionnaire&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:EMIRQuestionnaire&gt;</div>
<div><span class="Apple-tab-span"></span></div>
<div>
<span class="Apple-tab-span"></span>&lt;/CP100CP:EMIRQuestionnaire&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;/CP100CP:Counterparty&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&nbsp;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;/CP100CP:Counterparties&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;/CP100:PartyDetails&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span"></span>&lt;/MAG:PartiesMisc&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;GOV100:GoverningLaw &nbsp;ID='2' Code="GOV100"&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;!-- Changed --&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp; &lt;GOV100:Governing_Law &nbsp;PageNo="11" LineNo="14"&gt;Alabama&lt;/GOV100:Governing_Law&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&nbsp;</div>
<div>
<span class="Apple-tab-span"></span>&lt;/GOV100:GoverningLaw&gt;</div>
<div><span class="Apple-tab-span"></span></div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;/MAG:Body&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp; &lt;/MAG:Document&gt;</div>
<div>&nbsp; &nbsp;let $doc := &lt;MAG:Document xmlns:NAV100PP="NAV100PP" xmlns:SE100="SE100" xmlns:CSD100CP="CSD100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CAR100CP="CAR100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:PET100="PET100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IM100CP="IM100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OP100="OP100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OF100PP="OF100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:VAL100CP="VAL100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MIC100="MIC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CEM100="CEM100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TH100CP="TH100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MRA="MRA"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ECOLL100PP="ECOLL100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:NAV100CP="NAV100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AF100="AF100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AD100="AD100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:EOD100-4="EOD100-4"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AP100="AP100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OF100CP="OF100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:THRW100PP="THRW100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:EOD100-3="EOD100-3"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CEM100PP="CEM100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TH100="TH100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OES100PP="OES100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MSLA="MSLA"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ECOLL100CP="ECOLL100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IME100PP="IME100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AF100PP="AF100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AD100PP="AD100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AT100PP="AT100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:HIC100="HIC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TAX100PP="TAX100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ROC100="ROC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SUB100PP="SUB100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:THRW100CP="THRW100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IR101="IR101"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CEM100CP="CEM100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SIN100="SIN100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OES100CP="OES100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IME100CP="IME100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AF100CP="AF100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AD100CP="AD100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AT100CP="AT100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ANX100-1="ANX100-1"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TAX100CP="TAX100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ROC100PP="ROC100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SUB100CP="SUB100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CTT100="CTT100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ATE100="ATE100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DD100="DD100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CRC100PP="CRC100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IME100="IME100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AL100="AL100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:PA100="PA100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ANX100-3="ANX100-3"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TAX100="TAX100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ROC100CP="ROC100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CPRE100="CPRE100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OCTH100PP="OCTH100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AET100PP="AET100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DD100PP="DD100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DN100PP="DN100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CRC100CP="CRC100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:KM100="KM100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AL100PP="AL100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:PA100PP="PA100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:EOD100-2="EOD100-2"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:FTH100PP="FTH100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:REP100PP="REP100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CA100="CA100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SIO100PP="SIO100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OCTH100CP="OCTH100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CPRE100PP="CPRE100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AET100CP="AET100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DD100CP="DD100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DN100CP="DN100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:UPC100="UPC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:KM100PP="KM100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AL100CP="AL100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:PA100CP="PA100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:EHP100PP="EHP100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TER100="TER100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:FTH100CP="FTH100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:REP100CP="REP100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ST100="ST100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SIO100CP="SIO100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CPRE100CP="CPRE100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:RD100PP="RD100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:PN100="PN100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:KM100CP="KM100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:NA100="NA100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MB100PP="MB100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:EHP100CP="EHP100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TER100PP="TER100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:REP100="REP100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CD100PP="CD100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MSFTA="MSFTA"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ROU100PP="ROU100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:RD100CP="RD100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:GOV100="GOV100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CSD100="CSD100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CC100PP="CC100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:NA100PP="NA100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MB100="MB100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:FMT100PP="FMT100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TER100CP="TER100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:AET100="AET100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CD100CP="CD100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DA100PP="DA100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:GMRA="GMRA"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ROU100CP="ROU100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:RD100="RD100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SE100PP="SE100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ATE_A100="ATE_A100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CC100CP="CC100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:NA100CP="NA100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MB100CP="MB100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:ANX100-2="ANX100-2"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:FMT100CP="FMT100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TC100="TC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CD100="CD100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:DA100CP="DA100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:NAV100="NAV100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:SE100CP="SE100CP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CSD100PP="CSD100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CAR100PP="CAR100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:IM100PP="IM100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:CC100="CC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MISC100="MISC100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OF100="OF100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:VAL100PP="VAL100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TEM100="TEM100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:OTP100="OTP100"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:TH100PP="TH100PP"</div>
<div>
<span class="Apple-tab-span"></span>xmlns:MAG="ISDA"&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;MAG:MetaInfo&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:CollectionNo&gt;4043&lt;/MAG:CollectionNo&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;!-- Amendment document --&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:DocumentType&gt;AGRT-AMD-DOC&lt;/MAG:DocumentType&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:AgreementDate&gt;2015-03-27&lt;/MAG:AgreementDate&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:DocumentState&gt;BAU&lt;/MAG:DocumentState&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:PdfPageRange&gt;24-32&lt;/MAG:PdfPageRange&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;/MAG:MetaInfo&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;MAG:Body&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;MAG:PartiesMisc&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100:PartyDetails xmlns:CP100="CP100" Code="CP100"&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp; &lt;CP100CP:Counterparties xmlns:CP100CP="CP100CP" Code="CP100CP"&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:Counterparty ID = '123'&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:Name PageNo="3" LineNo="21"&gt;INNODATA aa&lt;/CP100CP:Name&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:Lei PageNo="3" LineNo="21"&gt;eeeee1&lt;/CP100CP:Lei&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:EntityType PageNo="3" LineNo="21"&gt;CORPORATION&lt;/CP100CP:EntityType&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:JurisdictionOrganisation PageNo="3" LineNo="21"&gt;Florida&lt;/CP100CP:JurisdictionOrganisation&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:AgentName PageNo="3" LineNo="11"&gt;mmmmm&lt;/CP100CP:AgentName&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:PartyStatus PageNo="3" LineNo="21"&gt;Terminated&lt;/CP100CP:PartyStatus&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:DF2Questionnaire&gt;</div>
<div><span class="Apple-tab-span"></span></div>
<div>
<span class="Apple-tab-span"></span>&lt;/CP100CP:DF2Questionnaire&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;CP100CP:EMIRQuestionnaire&gt;</div>
<div><span class="Apple-tab-span"></span></div>
<div>
<span class="Apple-tab-span"></span>&lt;/CP100CP:EMIRQuestionnaire&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;/CP100CP:Counterparty&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&nbsp;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;/CP100CP:Counterparties&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;/CP100:PartyDetails&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; <span class="Apple-tab-span"></span>&lt;/MAG:PartiesMisc&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;GOV100:GoverningLaw &nbsp;ID='2' Code="GOV100"&gt;</div>
<div>
<span class="Apple-tab-span"></span>&lt;!-- Changed --&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp; &lt;GOV100:Governing_Law &nbsp;PageNo="11" LineNo="14"&gt;New York&lt;/GOV100:Governing_Law&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&nbsp;</div>
<div>
<span class="Apple-tab-span"></span>&lt;/GOV100:GoverningLaw&gt;</div>
<div><span class="Apple-tab-span"></span></div>
<div>
<span class="Apple-tab-span"></span>&nbsp;&lt;/MAG:Body&gt;</div>
<div>
<span class="Apple-tab-span"></span>&nbsp; &lt;/MAG:Document&gt;&#8203;<br>
</div>
<br>
</div>
<p>Please help<br></p>
<p><br></p>
<p>Thanks<br></p>
<p>Pragya<br></p>
</div>
"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
</div>
Schwartz, Christine | 20 Nov 18:32 2014

[MarkLogic Dev General] Use XQSync to copy files to zip archive without metadata files

Hi, 

I'm trying to use XQSync to copy XML documents to a zip file without copying the accompanying metadata files.

I've been trying to use OUTPUT_FILTER_FORMATS, but so far I've had no luck getting that property to work.

Thanks for any help!

Best,

Chris

Christine Schwartz
Metadata Librarian and XML Database Administrator
Princeton Theological Seminary Library
25 Library Place
Princeton, NJ 08540
christine.schwartz@...

Dinesh | 20 Nov 08:07 2014
Picon

[MarkLogic Dev General] xdmp:http-post and xdmp:http-get proxy

Hello,

 

Could you please advise how to use xdmp:http-post and xdmp:http-get for proxy? The MarkLogic Server running behind a proxy and trying to use xdmp:http-post and xdmp:http-get functions to connect the external site, but getting <code>400</code> <message>Bad Request</message>.

 

Will MarkLogic Server 7.x support proxy options?

 

 

1.       Request and Response without proxy.

                                               

Request

let $uri := "https://www.google.com.sg/?gws_rd=ssl#q=xml"

let $result := xdmp:http-get($uri,

                                <options xmlns="xdmp:document-get">

                                                <format>binary</format>

                                </options>)

  return $result

 

 

Response

<response xmlns="xdmp:http">

                <code>200</code>

                <message>OK</message>

                <headers>

                                <date>Thu, 20 Nov 2014 03:33:28 GMT</date>

                                <server>Apache</server>

                                <transfer-encoding>chunked</transfer-encoding>

                                <content-type>text/html; charset=utf-8</content-type>

                </headers>

</response>

<binary node of 155262 bytes> {0x3C21444F43545950...}

 

2.       Request made as discussed at this http://markmail.org/message/sbfj44jtmpsyopyh   (with proxy server

 

Request

let $proxy := "http://172.21.10.60:3128" (: simple http proxy :)

let $uri := " https://www.google.com.sg/?gws_rd=ssl#q=xml"(: target web service :)

 

let $host := tokenize($uri,'/')[3]

let $proxyuri := concat($proxy, '/', tokenize($uri, '/')[last()]) 

 

return xdmp:http-post(

      $proxyuri,

      <options xmlns="xdmp:http">

        <headers>

          <Host>{$host}</Host>         

        </headers>

      </options>

    )

 

Response

<response xmlns="xdmp:http">

  <code>400</code>

  <message>Bad Request</message>

  <headers>

    <server>squid/3.1.4</server>

    <mime-version>1.0</mime-version>

    <date>Thu, 20 Nov 2014 04:09:50 GMT</date>

    <content-type>text/html</content-type>

    <content-length>3071</content-length>

    <x-squid-error>ERR_INVALID_URL 0</x-squid-error>

    <vary>Accept-Language</vary>

    <content-language>en</content-language>

    <x-cache>MISS from l076ddms1</x-cache>

    <x-cache-lookup>NONE from l076ddms1:3128</x-cache-lookup>

    <via>1.0 l076ddms1 (squid/3.1.4)</via>

    <proxy-connection>close</proxy-connection>

  </headers>

</response>

 

Look at the URL formed by the above request

 

<div id="content">

<p>The following error was encountered while trying to retrieve the URL: <a href="/?gws_rd=ssl#q=xml">/?gws_rd=ssl#q=xml</a></p>

 

Thanks.

 

Regards

Dinesh

<div><div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">Could you please advise how to use xdmp:http-post and xdmp:http-get for proxy? The MarkLogic Server running behind a proxy and trying to use xdmp:http-post and xdmp:http-get functions to connect the external site, but getting &lt;code&gt;400&lt;/code&gt; &lt;message&gt;Bad Request&lt;/message&gt;.<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">Will MarkLogic Server 7.x support proxy options?<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><span>1.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US">Request and Response without proxy.<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">Request<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">let $uri := "https://www.google.com.sg/?gws_rd=ssl#q=xml"<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">let $result := xdmp:http-get($uri,<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;options xmlns="xdmp:document-get"&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;format&gt;binary&lt;/format&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/options&gt;)<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp; return $result<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">Response<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&lt;response xmlns="xdmp:http"&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;code&gt;200&lt;/code&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;message&gt;OK&lt;/message&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;headers&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;Thu, 20 Nov 2014 03:33:28 GMT&lt;/date&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;server&gt;Apache&lt;/server&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;transfer-encoding&gt;chunked&lt;/transfer-encoding&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;content-type&gt;text/html; charset=utf-8&lt;/content-type&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/headers&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&lt;/response&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&lt;binary node of 155262 bytes&gt; {0x3C21444F43545950...}<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><span>2.<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span lang="EN-US">Request made as discussed at this http://markmail.org/message/sbfj44jtmpsyopyh &nbsp;&nbsp;<span>(with proxy server</span></span><span lang="EN-US">)&nbsp; </span><span lang="EN-US"><p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">Request<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">let $proxy := "<a href="http://172.21.10.60:3128">http://172.21.10.60:3128</a>" (: simple http proxy :)<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">let $uri := "</span><span lang="EN-US"> </span><span lang="EN-US">https://www.google.com.sg/?gws_rd=ssl#q=xml"(: target web service :)<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">let $host := tokenize($uri,'/')[3] <p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">let $proxyuri := concat($proxy, '/', tokenize($uri, '/')[last()])&nbsp; <p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">return xdmp:http-post(<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $proxyuri,<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;options xmlns="xdmp:http"&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;headers&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Host&gt;{$host}&lt;/Host&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/headers&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/options&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; )<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">Response<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&lt;response xmlns="xdmp:http"&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp; &lt;code&gt;400&lt;/code&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp; &lt;message&gt;Bad Request&lt;/message&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp; &lt;headers&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;server&gt;squid/3.1.4&lt;/server&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;mime-version&gt;1.0&lt;/mime-version&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;date&gt;Thu, 20 Nov 2014 04:09:50 GMT&lt;/date&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;content-type&gt;text/html&lt;/content-type&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;content-length&gt;3071&lt;/content-length&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;x-squid-error&gt;ERR_INVALID_URL 0&lt;/x-squid-error&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;vary&gt;Accept-Language&lt;/vary&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;content-language&gt;en&lt;/content-language&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;x-cache&gt;MISS from l076ddms1&lt;/x-cache&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;x-cache-lookup&gt;NONE from l076ddms1:3128&lt;/x-cache-lookup&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;via&gt;1.0 l076ddms1 (squid/3.1.4)&lt;/via&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp;&nbsp;&nbsp; &lt;proxy-connection&gt;close&lt;/proxy-connection&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&nbsp; &lt;/headers&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&lt;/response&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">Look at the URL formed by the above request<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&lt;div id="content"&gt;<p></p></span></p>
<p class="MsoListParagraph"><span lang="EN-US">&lt;p&gt;The following error was encountered while trying to retrieve the URL: &lt;a href="/?gws_rd=ssl#q=xml"&gt;/?gws_rd=ssl#q=xml&lt;/a&gt;&lt;/p&gt;<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks. <p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US">Dinesh <p></p></span></p>
</div></div>
Dinesh | 20 Nov 00:50 2014
Picon

[MarkLogic Dev General] Search API

Hi Search API Guru,

 

How will ML differentiate between content quote and phrase quote? E.g. “The “MarkLogic””

 

Thanks.

 

Regards

Dinesh

 

<div><div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi Search API Guru,<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">How will ML differentiate between content quote and phrase quote? E.g. &ldquo;The &ldquo;MarkLogic&rdquo;&rdquo;<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks.<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards<p></p></span></p>
<p class="MsoNormal"><span lang="EN-US">Dinesh<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div></div>
Lee Li Bin | 18 Nov 11:43 2014
Picon

[MarkLogic Dev General] Proxy server to access

Hi,

 

Currently my application requires to go through the Proxy server to access the internet for federation search, we have issue connecting to internet with below XQUERY, is there any issue with the below code?

    let $url := "http://www.hklii.hk/cgi-bin/sinosrch.cgi?results=200;query=test";

 

           let $result := xdmp:http-get($url,

           <options xmlns="xdmp:document-get">

                <format>binary</format>

           </options>)[2]

          

 

Regards,

Li Bin

 

<div><div class="WordSection1">
<p class="MsoNormal"><span lang="EN-SG">Hi,<p></p></span></p>
<p class="MsoNormal"><span lang="EN-SG"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-SG">Currently my application requires to go through the Proxy server to access the internet for federation search, we have issue connecting to internet with below XQUERY, is there any issue with the below code?<p></p></span></p>
<p class="MsoNormal"><span lang="EN-SG"> <p></p></span></p>
<p class="MsoPlainText"><span lang="EN-SG">&nbsp;&nbsp;&nbsp;&nbsp;let $url := "</span><span lang="EN-SG"><a href="http://www.hklii.hk/cgi-bin/sinosrch.cgi?results=200;query="><span>http://www.hklii.hk/cgi-bin/sinosrch.cgi?results=200;query=</span></a>test</span><span lang="EN-SG">";<p></p></span></p>
<p class="MsoPlainText"><span lang="EN-SG"><p>&nbsp;</p></span></p>
<p class="MsoPlainText"><span lang="EN-SG">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; let $result := xdmp:http-get($url,<p></p></span></p>
<p class="MsoPlainText"><span lang="EN-SG">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;options xmlns="xdmp:document-get"&gt;<p></p></span></p>
<p class="MsoPlainText"><span lang="EN-SG">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;format&gt;binary&lt;/format&gt;<p></p></span></p>
<p class="MsoPlainText"><span lang="EN-SG">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/options&gt;)[2]<p></p></span></p>
<p class="MsoPlainText"><span lang="EN-SG">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <p></p></span></p>
<p class="MsoNormal"><span lang="EN-SG"><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span lang="EN-SG">Regards,<p></p></span></p>
<p class="MsoNormal"><span lang="EN-SG">Li Bin<p></p></span></p>
<p class="MsoNormal"><span lang="EN-SG"><p>&nbsp;</p></span></p>
</div></div>
Ashish Bhardwaj | 16 Nov 21:54 2014
Picon

[MarkLogic Dev General] Task Server priority

Hi,

We have some CPF pipelines configured which may have thousands of tasks queued for task-server. Now, we want some process to happen which we do by spawning a new Xquery module with highest priority. 
How can we make sure that the newly spawned task is picked before the tasks spawned by CPF.

Regards,
Ashish
<div><div dir="ltr">Hi,<div><br></div>
<div>We have some CPF pipelines configured which may have thousands of tasks queued for task-server. Now, we want some process to happen which we do by spawning a new Xquery module with highest priority.&nbsp;</div>
<div>How can we make sure that the newly spawned task is picked before the tasks spawned by CPF.</div>
<div><br></div>
<div>Regards,</div>
<div>Ashish</div>
</div></div>
Abhishek.Srivastav | 13 Nov 05:25 2014

[MarkLogic Dev General] Geo-spatial API - Roadside Distance

Does MarkLogic Geo-spatial APIs provide road distance between two pair of latitude and longitude.

Please suggest...
Thanks
Abhishek
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the intended recipient(s), please
reply to the sender and destroy all copies of the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in
reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by
applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses
may be monitored.

Gmane