This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Xml Element to Byte Array" Watch "Xml Element to Byte Array" New topic

Xml Element to Byte Array

Jigar Naik
Ranch Hand

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

Jigar Naik

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13005
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.

Have you checked out Aspose?
subject: Xml Element to Byte Array
It's not a secret anymore!