Ah, I found the error of my ways - a little humility never hurts! The
content that I create is actually inserted into a larger XML document,
something along the lines of:
<xml>
<destination-uri>some-uri</destination-uri>
<content>
Processing instruction / XML header declaration
XML content body
</content>
...
</xml>
So that the xml declaration was not actually at the beginning of the
document. But like the hound dog of heaven, MarkLogic finally caught me and
said, you must change, you must conform lest the fiery pit of unsanctioned
structures consumes your efforts!
So for whatever reason 4.1 actually let me do this, but I understand this is
not acceptable practice.
Merry Christmas from a former Scrooge and thanks for all the feedback!
J Tim
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Tim Meagher
Sent: Friday, December 14, 2012 11:16 PM
To: 'MarkLogic Developer Discussion'
Subject: Re: [MarkLogic Dev General] XDMP-BADPINAME:
xdmp:get-request-body("xml")
Well, I tried creating an example using xquery, but trying to add the xml
declaration to a document results in the following documented error after
trying to create the record and not during insert:
Processing instructions may not have the target 'XML'
So I'm wondering if the XML declaration should never have been allowed in
any documents being created externally for insertion and if MarkLogic
started restricting such documents in ML 5 or 6. I'd sure like to get some
ideas from MarkLogic about this. It doesn't seem that inserting external
documents containing an xml declaration should be difficult to insert.
Tim
-----Original Message-----
From: <mailto:[email protected]>
[email protected]
[ <mailto:[email protected]>
mailto:[email protected]] On Behalf Of Geert Josten
Sent: Friday, December 14, 2012 3:00 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] XDMP-BADPINAME:
xdmp:get-request-body("xml")
Hi Tim,
I recommend creating a test case that shows the problem as clearly as
possible, and file an RFE at support.
Cheers,
Geert
> -----Oorspronkelijk bericht-----
> Van: <mailto:[email protected]>
[email protected] [mailto:general-
> <mailto:[email protected]> [email protected]]
Namens Tim Meagher
> Verzonden: vrijdag 14 december 2012 19:09
> Aan: 'MarkLogic Developer Discussion'
> Onderwerp: Re: [MarkLogic Dev General] XDMP-BADPINAME: xdmp:get-
> request-body("xml")
>
> Hi Folks,
>
> I found a note from Geert that MarkLogic does not need the xml
processing
> instruction, so I removed it from the XML document I was trying to
insert
> into a MarkLogic database running 6.0.2 and it worked. Why isn't
> 6.0.2 merely ignoring the processing instruction when it is included?
>
> Tim
>
> -----Original Message-----
> From: Tim Meagher [ <mailto:[email protected]> mailto:[email protected]]
> Sent: Friday, December 14, 2012 11:16 AM
> To: 'MarkLogic Developer Discussion'
> Subject: XDMP-BADPINAME: xdmp:get-request-body("xml")
>
> XDMP-BADPINAME: xdmp:get-request-body("xml") -- Invalid processing
> instruction name "xml" at line 1
>
> Can someone tell me what this is about? "xml" is one of the allowable
types
> per the documentation at
> <http://docs.marklogic.com/xdmp:get-request-body?q=xdmp:get-request->
http://docs.marklogic.com/xdmp:get-request-body?q=xdmp:get-request-
> body .
> I've been running this code regularly on ml 4.1 but it is failing on
> ml 6.0.2.
>
> Tim Meagher
>
>
> _______________________________________________
> General mailing list
> <mailto:[email protected]> [email protected]
> <http://developer.marklogic.com/mailman/listinfo/general>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
<mailto:[email protected]> [email protected]
<http://developer.marklogic.com/mailman/listinfo/general>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
<mailto:[email protected]> [email protected]
<http://developer.marklogic.com/mailman/listinfo/general>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general