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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:34:20+00:00 2026-05-21T22:34:20+00:00

<product> <modelNumber></modelNumber> <categoryPath> <category> <id></id> <name></name> </category> <category> <id></id> <name></name> </category> <category> <id></id> <name></name>

  • 0
<product>
  <modelNumber></modelNumber>
  <categoryPath>
    <category>
      <id></id>
      <name></name>
    </category>
    <category>
      <id></id>
      <name></name>
    </category>
    <category>
      <id></id>
      <name></name>
    </category>
    <category>
      <id></id>
      <name></name>
    </category>
    <category>
      <id></id>
      <name></name>
    </category>
  </categoryPath>
</product>

This is my XML structure. Now, is it possible to create a MySQL table based on this structure? Or would I have to manipulate the XML data?

  • 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-21T22:34:21+00:00Added an answer on May 21, 2026 at 10:34 pm

    You would be able to read the XML (if it had any values of course), but you would really need to explain the system the meaning of each value. For instance the is a many-to-one relationship with a product, so the script has to know that it has to execute multiple inserts instead of trying to save it in one field.

    I’m not 100% sure, but using this to create a structure automatically is not gonna happen unless you explain the system/script what to do.. it’d be faster to create the tables yourself. Since there are no details of a field either (primary key, unique fields, auto_increment fields, varchar/char/int, etc..)

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

Sidebar

Related Questions

Give this xml structure: <store-fax-info> <store-info store-status=1 store-service-type=2> <store-guid>blah-blah-blah-blah</store-guid> <store-name>Avacados R Us</store-name> <phone>555-555-5555</phone> <fax>123-456-789</fax>
I have an XML file that looks something like this: <product> <modelNumber>Data</modelNumber> <salePrice>Data</salePrice> </product>
category_product --------------- id_category id_product product --------------- id_product id_manufacturer manufacturer --------------- id_manufacturer name How would
foreach($hello_world as $key=>$product_id) { if(in_array($key,$exclude))continue; $query = $this->db->query(SELECT * FROM product where modelNumber =
I'm wondering if this would be the best way to build a table for
String product = Integer.toString(w); char[] original = String.toCharArray(product); This is the code I have
The Product Tags tab would only appear after a product has been created. Even
Product product = new Product() { Category = category }; _session.CommitChanges(); vs. Product product
My product gets shipped with PHP binaries, dlls, php.ini in folder PHP. Now I
Our product is halted at Java version 1.5.0_13 and we would like to upgrade.

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.