Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8335493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:41:38+00:00 2026-06-09T03:41:38+00:00

I have problem with adding new node (with namespace) to my xml document which

  • 0

I have problem with adding new node (with namespace) to my xml document which is used to generating xaml. I’m doing it like this:

XmlElement richTextColumns = xmlDoc.CreateElement("local2:RichTextColumns");

but i receive error 0xC00CE01D (while calling xmlDoc.getxml). I have tried adding attribute xmlns:local2=”using:App2.Common” to xmlDoc:

var att = xmlDoc.CreateAttribute("xmlns:local2");
att.InnerText = "using:Dictionary.Common";
xmlDoc.Attributes.SetNamedItem(att);

it results in this error

Object reference not set to an instance of an object.

Thank you in advance 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T03:41:39+00:00Added an answer on June 9, 2026 at 3:41 am

    If you’d like to create an element with a specific namespace use this call:

    xmlDoc.CreateElementNS("using:Dictionary.Common", "local2:elementName")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have problem with simpleXml and adding new items. This is my xml: <?xml
I have a problem with adding filter for attribute, which exist not in all
I have a problem with utf-8 encoding in primefaces 3. but with this (adding
I have a problem with size calculation in Qt when adding new widgets at
i have a problem while incrementing a variable and adding new data to array
I have an xml structure like this <element> <foodjoint_name>DineOut</foodjoint_name> <logo>http://192.168.1.112/dineout/images/dominos.jpg</logo> </element> I am parsing
I have problem with adding image to DGV cell after data binding. this is
I have a problem while adding a new class in my existing structure. I
I have problem adding arraylist to list view, will explain about my problem here..
I have a problem adding ADO.Net Entity Data Model to my existing project, or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.