Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Xml Element to Byte Array

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i convert XML element to Byte array using java ?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic