Joe Wicentowski | 3 Jan 2012 16:08
Picon
Gravatar

Re: Removing BOM from Document

Hi Daniel,

> this sounds quite good. But I'm using xforms' xf:upload bound to a node with
> datatype base64Binary. So all I have on the server is a node in
> base64-encoded format and no uri. I counld't figure out a way to combine the
> xforms upload and the file:read-unicode function. Is this possible somehow?

Sorry, I'm not sure.  Maybe util:parse() needs to be adapted to strip
the BOM using a similar technique (doing so is beyond my java
abilities though).  Perhaps others can weigh in here?

The alternative would be to strip the BOM yourself first; one method
is here: http://developer.marklogic.com/pipermail/general/2011-October/008850.html.

Cheers,
Joe

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev

Gmane