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. How to use createdocumentfragment(.NET) function to add a document fragment containing namespace prefix?

How to use createdocumentfragment(.NET) function to add a document fragment containing namespace prefix?

Scheduled Pinned Locked Moved XML / XSL
csharpxmlhelptutorialquestion
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.
  • C Offline
    C Offline
    cool_mars
    wrote on last edited by
    #1

    textbox1 true 2.75in 1in <paddingleft>2pt</paddingleft> <paddingright>2pt</paddingright> <paddingtop>2pt</paddingtop> <paddingbottom>2pt</paddingbottom> 3 true 4.75in 1.125in tttttttttttttttttttttttttttttttttttttttttttt en-US 1in I have a xml document like this, when i tried to use createdocumentfragment() to add another textbox node textbox2 true 2.75in 1in <paddingleft>2pt</paddingleft> <paddingright>2pt</paddingright> <paddingtop>2pt</paddingtop> <paddingbottom>2pt</paddingbottom> 3 true 4.75in 1.125in ssssssssssssssssssssssssssssssssss since there is a , I get an error saying rd namespace not declared. Anyone has some idea about it? Thanks in advance! Ricky

    G 1 Reply Last reply
    0
    • C cool_mars

      textbox1 true 2.75in 1in <paddingleft>2pt</paddingleft> <paddingright>2pt</paddingright> <paddingtop>2pt</paddingtop> <paddingbottom>2pt</paddingbottom> 3 true 4.75in 1.125in tttttttttttttttttttttttttttttttttttttttttttt en-US 1in I have a xml document like this, when i tried to use createdocumentfragment() to add another textbox node textbox2 true 2.75in 1in <paddingleft>2pt</paddingleft> <paddingright>2pt</paddingright> <paddingtop>2pt</paddingtop> <paddingbottom>2pt</paddingbottom> 3 true 4.75in 1.125in ssssssssssssssssssssssssssssssssss since there is a , I get an error saying rd namespace not declared. Anyone has some idea about it? Thanks in advance! Ricky

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      As far as I know, you have to repeat the explicit declarations in the document fragment:

      <textbox xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" name="textbox2">
      <rd:defaultname xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">textbox2</rd:defaultname>
      <visibility>
      <hidden>true</hidden>
      </visibility>
      <top>2.75in</top>
      <width>1in</width>
      <style>
      <paddingleft>2pt</paddingleft>
      <paddingright>2pt</paddingright>
      <paddingtop>2pt</paddingtop>
      <paddingbottom>2pt</paddingbottom>
      </style>
      <zindex>3</zindex>
      <cangrow>true</cangrow>
      <left>4.75in</left>
      <height>1.125in</height>
      <value>ssssssssssssssssssssssssssssssssss</value>
      </textbox>

      "We make a living by what we get, we make a life by what we give." --Winston Churchill

      modified on Friday, January 30, 2009 3:03 PM

      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