Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 16
Registered: ‎06-27-2012
My Device: 9900
My Carrier: Orange

java.xml Transformer and TransformerFactory class unavailable

Hi everyone,

 

This is my first topic and I wish if you can help me brothers.

 

I have installed JDK 7.0, last version but still I cant find java.xml.Transformer and TransformerFactory.

 

All what I want is to update xml and save updated info on nodes back to file.

 

Any help please.

 

Thank you,

Ray

Contributor
Posts: 16
Registered: ‎06-27-2012
My Device: Bold 9900
My Carrier: Bell

Re: java.xml Transformer and TransformerFactory class unavailable

I'm not sure if there's an easier way than using DocumentBuilder, being that I am a newbie Java and Blackberry developer It appears there is no Transformer class in JavaME. Java-Samples.com has a nice tutorial that can teach you the basics of DocumentBuilder and SAX (both are supported by JDK 7), both reading in from xml, and writing out xml files.

Contributor
Posts: 16
Registered: ‎06-27-2012
My Device: 9900
My Carrier: Orange

Re: java.xml Transformer and TransformerFactory class unavailable

Hi dear,

Thanks man alot. But I still cant find "XMLSerializer". What would you suggest. Smiley Sad It seems I need to update my JDK 7.1.0.5 but I dont know how. All what I have now is JDK SE.

Any ideas

Highlighted
Contributor
Posts: 16
Registered: ‎06-27-2012
My Device: Bold 9900
My Carrier: Bell

Re: java.xml Transformer and TransformerFactory class unavailable

[ Edited ]

Looks like that also doesn't come free in the BB JDK. I did a little bit of research for you, and found there was a SO thread with the same problem you're having!

 

The top answer suggests using an (open source) 3rd party library called kXML,  which gives you create/change/edit functionality for free. He even went as far as to link to directions on how to integrate into your project! But if you want to go the manual way, the second answer suggests using the built-in XMLWriter class.

Contributor
Posts: 16
Registered: ‎06-27-2012
My Device: 9900
My Carrier: Orange

Re: java.xml Transformer and TransformerFactory class unavailable

Thanks man for your time

you saved me Smiley Happy