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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:18:17+00:00 2026-06-14T22:18:17+00:00

Here is the original xml file: <?xml version=1.0 encoding=UTF-8?> <TVAMain xml:lang=en-GB xmlns=urn:tva:metadata:2010 xmlns:tva2=urn:tva:metadata:extended:2010 xmlns:yv=http://refdata.youview.com/schemas/Metadata/2012-10-16

  • 0

Here is the original xml file:

<?xml version="1.0" encoding="UTF-8"?>
<TVAMain xml:lang="en-GB" xmlns="urn:tva:metadata:2010" xmlns:tva2="urn:tva:metadata:extended:2010" xmlns:yv="http://refdata.youview.com/schemas/Metadata/2012-10-16" xmlns:mpeg7="urn:tva:mpeg7:2008" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://refdata.youview.com/schemas/Metadata/2012-09-26 ../schemas/youview_metadata_2012-09-26.xsd"> 
<!-- -->
    <ProgramDescription> .............................

I changes some of the content of the xml(but not the one I post here, those codes should be unchanged), then write to a new xml file, but the new xml file content become like this:

<?xml version='1.0' encoding='UTF-8'?>
<TVAMain xmlns="urn:tva:metadata:2010" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://refdata.youview.com/schemas/Metadata/2012-09-26 ../schemas/youview_metadata_2012-09-26.xsd" xml:lang="en-GB">

    <ProgramDescription>....................

you can see that the some contents are lost, and the order is also changed, what should I do in order to avoid any changes to xml?

  • 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-14T22:18:18+00:00Added an answer on June 14, 2026 at 10:18 pm

    Attributes on XML tags do not have a fixed order, changing their ordering doesn’t change their meaning.

    ElementTree will only write out namespace qualifiers for namespaces actually in use. Your example is very brief, but I suspect it doesn’t make use of the yv and mpeg7 namespaces at all.

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

Sidebar

Related Questions

Here is the original xml file <?xml version=1.0 encoding=utf-8?> <configuration> <setup> <cap>33</cap> </setup> <setup>
I have the following snippet of XML: <?xml version=1.0 encoding=UTF-8?> <Envelope xmlns=http://schemas.microsoft.com/dynamics/2008/01/documents/Message> <Header> <MessageId>{11EA62F5-543A-4483-B216-91E526AE2319}</MessageId>
I would like to parse this xml file: <?xml version=1.0 encoding=utf-8?> <resources> <string-array name=descripciones>
I have an xml file. <?xml version=1.0 encoding=UTF-8?> <channel> <item>content with special character é</item>
This is my original xml: <?xml version=1.0 encoding=UTF-8?> <table> <row> <id>12</id> <name>Mickey Mouse</name> </row>
Here is an example bit from the xml file: <array> <dict> <key>Name</key> <string>Joe Smith</string>
Here is an representation of the XML file I am working with: <root> <header>
I have a website here that writes info to and XML file, here is
Here's the problem. I have an xml file in which there are multiple tags
Here is original Query :, it generates o/p with two columns name (label, count)

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.