• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in creating xml

 
sagar shiraguppi
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I want to create a xml file which looks like this

<?xml version="1.0" encoding="UTF-8"?>
<bnw:createSkill workspace="LISA_INT7_HTTPS" correlationId="CS015" xmlns="http://www.abc.com/xyz/messages/data" xmlns:bnw="http://www.abc.com/xyz/messages">
<skill name="online_presence_tier1-Add_Refs-disk"/></bnw:createSkill>

can any one knows the solution?
 
Tim Moores
Bartender
Posts: 2839
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What problem are you facing, specifically? How are you trying to create that file?
 
sagar shiraguppi
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Tim,
I want to create that xml file using the java code. Could you please help me, I am new to XML
 
Tim Moores
Bartender
Posts: 2839
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can either use the file I/O classes in the java.io package to write the file directly, use an API like JAXP (which is part of JSE), or a 3rd party library like JDOM, dom4j or XOM.

But you should start here: http://java.sun.com/xml/tutorial_intro.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic