BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-11-2009, 12:05 AM   #1
aahmad
New Member
 
Join Date: Sep 2009
Model: 6330
PIN: N/A
Carrier: at&t
Posts: 1
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
daphne
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
Default

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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip picture

CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip

$5.88



US Stock 5pcs W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS picture

US Stock 5pcs W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS

$17.75



USB BIOS EEPROM SPI FLASH Programmer CH341A 24 25 series BIOS Writer Burner Chip picture

USB BIOS EEPROM SPI FLASH Programmer CH341A 24 25 series BIOS Writer Burner Chip

$7.57



10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA picture

10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA

$17.98



EEPROM BIOS USB Programmer CH341A + SOP8 Clip + 1.8V Adapter + SOP8 Adapter picture

EEPROM BIOS USB Programmer CH341A + SOP8 Clip + 1.8V Adapter + SOP8 Adapter

$14.53



REVELPROG-IS SERIAL FLASH & EEPROM PROGRAMMER (1.8V - 5V + ISP, USB) picture

REVELPROG-IS SERIAL FLASH & EEPROM PROGRAMMER (1.8V - 5V + ISP, USB)

$139.00







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