This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes returning a xml string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "returning a xml string" Watch "returning a xml string" New topic

returning a xml string

manoj samarasinghe

Joined: Nov 17, 2004
Posts: 16

in my program i need to use a xml document as a input to a perticuler that class i need to parse that xml and identify methods and attributes of that class from that xml.

and also i need a way to make all returned values from methods of that class in to a another xml string.

xml string as input-----> class---->identify mehod calls from that xml string---->calling methods---->return values as xml string.

i am expecting more simple solution for this
manoj samarasinghe

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Because your output is effecively a subset of your input and both ar XML, you could write an XSLT to create one from the other.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: returning a xml string
Similar Threads
documentBuilderFactory parse problem
transient XML and Java
Class For Appending Data
How to retrieve data from XML document using JAVA APIs
Regular Expression or else?