|
From: <jz...@xi...> - 2013-07-27 00:15:35
|
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 <for...@gm...> 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,
>
> I'm 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
>
>
|