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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:33:33+00:00 2026-05-28T06:33:33+00:00

Is it possible to have more than one set of parent nodes? example: <?xml

  • 0

Is it possible to have more than one set of parent nodes?

example:

<?xml version="1.0" encoding="UTF-8" ?>
<parentOne>
    <child>
          <subChild></subChild>
     </child>
</parentOne>
<parentTwo>
    <child>
          <subChild></subChild>
     </child>
</parentTwo>

is there a way for that work?

  • 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-05-28T06:33:34+00:00Added an answer on May 28, 2026 at 6:33 am

    Short answer: No.

    Every XML document has exactly one root element as per standard.

    [Definition: There is exactly one element, called the root, or document element, no part of which appears in the content of any other element.] For all other elements, if the start-tag is in the content of another element, the end-tag is in the content of the same element. More simply stated, the elements, delimited by start- and end-tags, nest properly within each other.

    Use something like this instead:

    <?xml version="1.0" encoding="UTF-8" ?>
    <parents>
        <parent id="One">
            <child>
                  <subChild></subChild>
             </child>
        </parent>
        <parent id="Two">
            <child>
                  <subChild></subChild>
             </child>
        </parent>
    </parents>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

first time use JTree. Just wondering is it possible to have more than one
Is it possible to have a draggable element with more than one handle? I
Is it possible to link more than one Report parameter to data set parameters,
it's possible to have one entity object (class, e.g. User) for more entity models
Is it possible to store more than one value and query the database and
Is this possible to have two (or more) different kinds of cells to be
Is it possible to have a single listview with 2 or more columns, operable
Is it possible to have XML-embedded JavaScript executed to assist in client-side (browser-based) XSL
It appears that NHibernate cannot automap more than one IList of a given type
What would be the best choice of build system for a more than one

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.