Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within XML
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
XML and Related Technologies
problem in creating xml
sagar shiraguppi
Ranch Hand
Posts: 74
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Saloon Keeper
Posts: 7585
176
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What problem are you facing, specifically? How are you trying to create that file?
sagar shiraguppi
Ranch Hand
Posts: 74
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
@Tim,
I want to create that xml file using the
java
code. Could you please help me, I am new to XML
Tim Moores
Saloon Keeper
Posts: 7585
176
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Replace URL
Transforming URL
NullPointerException when calling a web service
xmlns problem in xslt
JAX-WS xsd:import
More...