Hey everyone. I wanted to use an HTTP reference within an image tag inside an XML file as opposed to having the image in a folder . Is that feasible?

Member Avatar for rajarajan2017

What you are going to do?

Reading <img tag> as a string from xml with the image folder path?

That's the good idea to read no of external images!

No, I want it to go something like this

<image>http://www.somewhereontheinternet.com/image.jpg</image>

Will that work or do image have to be in a folder of the same site where the XML file is?

Member Avatar for rajarajan2017

No need, The above code is right! But anyway you are going to read the tag value ("http://..") and going to call the relevant file from you code, then don't worry where it resides. It will be anyside, your server or some other site. But the code should call the path....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.