You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by priya j <ja...@gmail.com> on 2007/12/12 11:11:00 UTC

Adding more attribute to my XML output

Hi,
I am using the CXF HTTP binding for my application. My application works
fine. I want to add some more attribute to my xml output. 

output is:

<?xml version="1.0" encoding="UTF-8" ?> 
- <QueryResult xmlns="http://webservice.com">
- <result>
  </result>
  </QueryResult>

I need something like the following

<?xml version="1.0" encoding="UTF-8" ?> 
- <ResultSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:yahoo:srch" xsi:schemaLocation="urn:yahoo:srch
http://api.search.yahoo.com/WebSearchService/V1/WebSearchResponse.xsd"
type="web" totalResultsAvailable="94300000" totalResultsReturned="3"
firstResultPosition="1"
moreSearch="/WebSearchService/V1/webSearch?query=nano&appid=YahooDemo&region=us">
- <Result>
    </Result>
  </ResultSet>


something like the schemaLocation and also the dynamic generated values.
Can anyone help me on this.
Thanks inadvance
-- 
View this message in context: http://www.nabble.com/Adding-more-attribute-to-my-XML-output-tp14292213p14292213.html
Sent from the cxf-user mailing list archive at Nabble.com.