This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Images in XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Images in XML" Watch "Images in XML" New topic
Author

Images in XML

Shahid Mithani
Greenhorn

Joined: Dec 04, 2003
Posts: 8
Is there a standard syntax for branding XML content with an image/logo. I have written some Java Webservices that provide data to users. I need to add a url of our company logo at the begining of the XML content. I need to know what is a decent (if not standard) way of doing this.

Thanks,
SM
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
There is no standard as far as I know.
I guess you have two main options:
1) put the URL into a SOAP header (a bit more complex to implement on both ends)
2) put the URL as the first return parameter of each operation (ugly, but easy to implement)


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Images in XML