Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Image in XML attribute

Image in XML attribute

Scheduled Pinned Locked Moved XML / XSL
xmlhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nikkiee
    wrote on last edited by
    #1

    can any one please help me out to insert the another image in the form of base64 inside the aatribute <> I have a xml format like above and I want to inset the image in place of existing image . Please help

    S 1 Reply Last reply
    0
    • N Nikkiee

      can any one please help me out to insert the another image in the form of base64 inside the aatribute <> I have a xml format like above and I want to inset the image in place of existing image . Please help

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      Firstly you need to convert your image to base64 - I'll presume you know how to do this. To insert the new value, you need to navigate to the relevant element using the XML DOM[^] API. Then (presuming you're using Microsoft's MSXML) you would use the IXMLDOMElement::setAttribute[^] method with a name of "image" and the value set to the base64 encoded image string.

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups