|
From: <jz...@xi...> - 2013-07-29 18:35:32
|
Glad it worked, will incorporate this into next release 2.12, in the
mean time, feel free to post to vtd-xml-user if you got any questions
or bug report
----- Original Message -----
From: Blaine Forbush
To:
Cc:
Sent:Mon, 29 Jul 2013 11:14:11 -0600
Subject:Re: [Vtd-xml-users] Fwd: UTF-16 Updates Fail
The fix that you provided for XMLModifier.java [1] has resolved the
issue! Our UTF-16 documents are now being updated properly. Thank you
for your responsiveness and thanks for the efficiency tips as well.
This is an excellent project that I will certainly promote amongst my
friends and co-workers. Let me know if I can be of any assistance.
On Fri, Jul 26, 2013 at 5:58 PM, wrote:
The problem should have been fixed, can you check out
XMLModifier.java from cvs and compile everything and give a try also
in your code
int attrValIndex = vn.getAttrVal(vn.toString(currentIndex));
can be made more efficient,
int attrValIndex = currentIndex+1;
give it a bit thought and let me know if there is any question
On Fri 26/07/13 2:18 PM , Blaine Forbush wrote:
> Here is an example of the problem that I am encountering. This
code
> parses the same file encoded in UTF-8 and UTF-16, finds a token by
> xPath, updates that token and then writes out the changes to a new
> file. As you should see, the output of the UTF-16 file is
corrupted.
>
> On Fri, Jul 26, 2013 at 11:58 AM, wrote:
> Can u attach a test case showing th eproblem so we can fix for the
> next release...
> ----- Original Message -----
> From: Blaine Forbush
> To:
> Cc:
> Sent:Fri, 26 Jul 2013 11:22:36 -0600
> Subject:[Vtd-xml-users] Fwd: UTF-16 Updates Fail
> Hi,
>
> Im new to VTD. Firstly, thank you for this excellent project, it
> fills our need perfectly!
> Now, I am successfully updating XML documents using VTD, however,
I
> have a document in UTF-16 that fails to process correctly. If I
open
> that same file in Notepad++ and convert it to UTF-8, it works just
> fine. Do you have any suggestions?
> The symptoms that I am seeing are 1) when I update a token, the
update
> appears in a random location within the actual document. 2) under
> certain scenarios, I get an ArrayIndexOutOfBoundsException when
trying
> to do output("file.xml") [4].
> Thanks,Blaine
>
>
> Links:
> ------
> [4] http://file.xml [4]
>
>
Links:
------
[1] http://XMLModifier.java
[2] mailto:jz...@xi...
[3] mailto:for...@gm...
[4] http://filexml
|