File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Images in XML" Watch "Images in XML" New topic

Images in XML

Shahid Mithani

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.

Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
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]
I agree. Here's the link:
subject: Images in XML
It's not a secret anymore!