BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-11-2009, 12:05 AM   #1 (permalink)
New Member
 
Join Date: Sep 2009
Model: 6330
PIN: N/A
Carrier: at&t
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default XMLWriter throws ArrayIndexOutOfBoundsException

Please Login to Remove!

Hello,

I'm using DOMInternalRepresentation.parse with an XMLWriter to produce a string representation of a DOM XML tree.

On the BB 8330 simulator, the string output code runs smoothly until I modify my DOM tree by setting a prefix on an element node (e.g. node.setPrefix("foo"), so I get an element that looks like this: <foo:name>...). At that point, running the string output routine (again DOMInternalRepresentation.parse with an XMLWriter) gives me an "ArrayIndexOutOfBoundsException: -1 < 0". I'm assuming the problem is in the XMLWriter, or less likely, in the DOMInternalRepresentation. It's quite possible that I'm misusing the API.

I would appreciate any help you could provide with this.

amin
Offline  
Old 09-11-2009, 12:11 AM   #2 (permalink)
BBF Spam Killer Moderator
 
daphne's Avatar
 
Join Date: May 2007
Location: on a sunny beach
Model: Paspt
OS: 10.3.0.90
PIN: X1ZPY34K
Carrier: VZW but not for long
Posts: 9,176
Post Thanks: 120
Thanked 147 Times in 116 Posts
Default

Moved to Developer Forum
__________________
Report spam text messages to 7726
#BlackBerry by choice
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

*Lot of 210* Intel N28F256A 256K CMOS Flash Memory Low Power Consumption Chips
$729.95
*Lot of 210*  Intel N28F256A 256K CMOS Flash Memory Low Power Consumption Chips pictureHP / Agilent 85700A 32 kByte RAM Memory Card. For 8591C, etc.
$24.99
HP / Agilent 85700A 32 kByte RAM Memory Card. For 8591C, etc. pictureSharp MX-SHP2GBXPS 2GB Memory Upgrade 40392-0813-0600
$89.0
Sharp MX-SHP2GBXPS 2GB Memory Upgrade 40392-0813-0600 pictureLot of RAM Desktop Memory Sticks PC133 PC2 PC333 128MB 256MB 512MB 1GB
$33.89
Lot of RAM Desktop Memory Sticks PC133 PC2 PC333 128MB 256MB 512MB 1GB pictureHP / Agilent 04278-89001 Memory Card. For 4284A, 4285A, etc
$29.99
HP / Agilent 04278-89001 Memory Card. For 4284A, 4285A, etc picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.