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. XSLT:copy-of

XSLT:copy-of

Scheduled Pinned Locked Moved XML / XSL
xmlhelpcsharpdatabasetutorial
3 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.
  • Y Offline
    Y Offline
    ybasha
    wrote on last edited by
    #1

    Hi there, i have a application which use xslt to read the data from the particular tag for example i have a xml file like below: xxiii, 2-297 p. 21 cm. monthly and i read data using xslt for ex: i use c# to load the data into database for ex: objTempNodes = objXml.SelectNodes("//dc:test", objNameSpaceMgr); sData[21] = ""; foreach (XmlNode objNode in objTempNodes) { sData[21] += objNode.InnerText.Trim(); sData[21] += (objNode.InnerText.Trim().Length > 0 ? sDelimiter : ""); sData[21] = sData[21].Substring(0, (sData[21].Length == 0 ? 0 : sData[21].Length - 1)); sData[21] = objNode.InnerText; if (sData[21].Trim() != "") sData[21] = RemoveDups(sData[21]); objNode.InnerText = sData[21]; } but the problem is i have value in tag '310' but it show me blank, i can see the other tag value. any suggestion on this issue? pls do the needful it urgent.

    D 1 Reply Last reply
    0
    • Y ybasha

      Hi there, i have a application which use xslt to read the data from the particular tag for example i have a xml file like below: xxiii, 2-297 p. 21 cm. monthly and i read data using xslt for ex: i use c# to load the data into database for ex: objTempNodes = objXml.SelectNodes("//dc:test", objNameSpaceMgr); sData[21] = ""; foreach (XmlNode objNode in objTempNodes) { sData[21] += objNode.InnerText.Trim(); sData[21] += (objNode.InnerText.Trim().Length > 0 ? sDelimiter : ""); sData[21] = sData[21].Substring(0, (sData[21].Length == 0 ? 0 : sData[21].Length - 1)); sData[21] = objNode.InnerText; if (sData[21].Trim() != "") sData[21] = RemoveDups(sData[21]); objNode.InnerText = sData[21]; } but the problem is i have value in tag '310' but it show me blank, i can see the other tag value. any suggestion on this issue? pls do the needful it urgent.

      D Offline
      D Offline
      Dustin Metzgar
      wrote on last edited by
      #2

      Could you please edit your post and have it ignore the HTML tags? Or convert all the <'s to <'s and >'s to >'s.


      Logifusion[^]
      "This isn't a business. I've always thought of it as a source of cheap labor. Like a family."

      Y 1 Reply Last reply
      0
      • D Dustin Metzgar

        Could you please edit your post and have it ignore the HTML tags? Or convert all the <'s to <'s and >'s to >'s.


        Logifusion[^]
        "This isn't a business. I've always thought of it as a source of cheap labor. Like a family."

        Y Offline
        Y Offline
        ybasha
        wrote on last edited by
        #3

        i did already pls check the subject XSLT:copy-of element thanx

        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