File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Xml Element to Byte Array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Xml Element to Byte Array" Watch "Xml Element to Byte Array" New topic
Author

Xml Element to Byte Array

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 751
How can i convert XML element to Byte array using java ?

Jigar Naik


William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
If you are talking about creating a text representation of the element contents as an array of bytes, look at the various methods in the org.w3c.dom.Node class, such as getNodeName and getNodeValue.

If that is not what you want, you need to explain further.

Bill

Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Xml Element to Byte Array
 
Similar Threads
xml as byte array
Multi dimensional array
how to upload images
split text file into bytesize chunks!
Writing byte array to xml in Java