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 9027153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:41:23+00:00 2026-06-16T06:41:23+00:00

I have the following scenario: using XML Data Bindings, I have an object created

  • 0

I have the following scenario: using XML Data Bindings, I have an object created from schema A, and a different object created using schema B. However, schema B imports schema A in order to define children nodes of the A type.

So, right now I have:

  • unit1, objectA (from schema A)
  • unit2, objectB (from schema B), objectA (from schema B which imports schema A)

The unit2.objectA class is, of course, incompatible with unit1.objectA. The definition in unit2 is also different, because it doesn’t include some namespace attributes (this is important: I think these are implicit because the parent node also have them.)

And this is my problem: I can do lots of stuff given that these are just IXMLDocument objects, but I want to be able to create unit1.objectA from unit2.objectA.

My initial thought was that one should be able to export nodes from a document, and that there should be an option to make this exported node “kosher” according to the correct schema (so, a node of type A inside a document B should export and validate against the schema A.) I understand that this may be wishing too much, so my question may be rephrased:

How can I export a node from a IXMLDocument object into a new IXMLDocument object, while adding/overriding namespace attributes (xmlns, xmlns:xsi, xsi:schemaLocation) in the exported node / document?

  • 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-16T06:41:24+00:00Added an answer on June 16, 2026 at 6:41 am

    Turned out to be a really tricky issue. Resorted to use low level DOM functions from my XML library and a lot of elbow grease; had to export the wanted fragment, and manually adjusted schemas and namespaces, then reformatted everything.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario: I am parsing values from an XML file using C# and have the
I am learning Ember and I have the following scenario... All views created using
I have the following scenario: if(xml.Descendants(ns + Children).FirstOrDefault() != null) { XElement children =
I have the following scenario: Entities are loaded from the database. One of them
I have the following scenario. I have created an ASP.NET web application (framework 3.5)
I have the following scenario (using rich faces): ... <a4j:outputPanel id=foo> <h:commandButton disabled=#{not _user.selected}
In the following scenario, you have a business object called Employee that contains all
We have the following scenario using the .NET RabbitMQ library: A worker thread picks
I have the following scenario: We are using web2py in the server side We
Scenario: Making an Android app using data from a website built with Wordpress. The

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.