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. WPF
  4. "XmlDataProvider has inline XML that does not explicitly set its XmlNamespace (xmlns="")"

"XmlDataProvider has inline XML that does not explicitly set its XmlNamespace (xmlns="")"

Scheduled Pinned Locked Moved WPF
csharpxmlhtmlvisual-studiowpf
2 Posts 2 Posters 1 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.
  • D Offline
    D Offline
    devvvy
    wrote on last edited by
    #1

    I've added xmlns="" to all my XmlDataProvider (after Googling for sometime[^]), but from Visual Studio output Window still getting the very annoying error message - "XmlDataProvider has inline XML that does not explicitly set its XmlNamespace (xmlns="")" <XmlDataProvider x:Key="MoreColors" XPath="/colors"> <x:XData> <colors xmlns="" > <color name="pink"/> <color name="white"/> <color name="black"/> <color name="cyan"/> <color name="gray"/> <color name="magenta"/> </colors> </x:XData> </XmlDataProvider> Any idea? Thanks

    dev

    M 1 Reply Last reply
    0
    • D devvvy

      I've added xmlns="" to all my XmlDataProvider (after Googling for sometime[^]), but from Visual Studio output Window still getting the very annoying error message - "XmlDataProvider has inline XML that does not explicitly set its XmlNamespace (xmlns="")" <XmlDataProvider x:Key="MoreColors" XPath="/colors"> <x:XData> <colors xmlns="" > <color name="pink"/> <color name="white"/> <color name="black"/> <color name="cyan"/> <color name="gray"/> <color name="magenta"/> </colors> </x:XData> </XmlDataProvider> Any idea? Thanks

      dev

      M Offline
      M Offline
      Mamta D
      wrote on last edited by
      #2

      I reproduced your code but it works fine here without any issues. Have you inserted this code inside a resources tag? Eg:

      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