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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:08:07+00:00 2026-06-01T10:08:07+00:00

I am receiving this XML file which I would like to validate. Ideally I

  • 0

I am receiving this XML file which I would like to validate. Ideally I should not edit this XML file at all. What tool can I use to do that ? I tried python/lxml and xmllint but none of them allow setting the default namespace for the XML instance:

<?xml version="1.0" encoding="UTF-8"?>
<CsaMscData>
  <MscHeader Version="SV10"/>
  <REGISTRATION_MATRIX>
    <BASE_OBJECT_INFO>
      <PADDING_DATA_FLAG>false</PADDING_DATA_FLAG>
      <NO_DATA_FLAG>true</NO_DATA_FLAG>
    </BASE_OBJECT_INFO>
    <MATRIX>0.99768257087730505,-0.06775286248296480,0.00624799111837611,-13.94377645859601600,0.06131919890246099,0.93512585266229120,0.34896933322081974,305.74417624498307000,-0.02948632926647999,-0.34777749971495792,0.93711331602875081,35.13001338466752800,3*0.00000000000000000,1.00000000000000020</MATRIX>
    <MATRIX_ID>1.3.12.2.1107.5.1.4.28334.4.0.4056501222952849:1.3.12.2.1107.5.1.4.28334.4.0.4056484330893172_1.3.12.2.1107.5.2.32.35065.2010021811070138240320629.0.0.0:1.3.12.2.1107.5.2.32.35065.1.20100218105150375.0.0.0</MATRIX_ID>
    <MATRIX_TYPE>8</MATRIX_TYPE>
    <CENTER_DS1>1064</CENTER_DS1>
    <WIDTH_DS1>200</WIDTH_DS1>
    <CENTER_DS2>479</CENTER_DS2>
    <WIDTH_DS2>994</WIDTH_DS2>
    <LUT_DS1>GrayScale08.clut</LUT_DS1>
    <LUT_DS2>HotBody08.clut</LUT_DS2>
    <MIX>0.50000000000000000</MIX>
    <THRMIN_DS1>0</THRMIN_DS1>
    <THRMAX_DS1>4095</THRMAX_DS1>
    <THRMIN_DS2>0</THRMIN_DS2>
    <THRMAX_DS2>4095</THRMAX_DS2>
  </REGISTRATION_MATRIX>
</CsaMscData>

The XSD is (truncated)

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.siemens.com/med/syngo/SiemensNonImageCSAData" 
 xmlns:NS="http://www.siemens.com/med/syngo/SiemensNonImageCSAData" targetNamespace="http://www.siemens.com/med/syngo/SiemensNonImageCSAData" version="1.0">
  <xs:annotation>
    <xs:documentation>
In a registration context, instances of this schema are written into the
"Siemens Non Image IOD::CSA Non Image::CSA Data Info" (0029,xx10) attribute.
Note: we assume all elements to be mandatory, i.e. minOccurs="1" and maxOccurs="1".
</xs:documentation>
  </xs:annotation>
  <xs:element name="CsaMscData">

Thanks for any hints !

  • 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-01T10:08:08+00:00Added an answer on June 1, 2026 at 10:08 am

    Without modifying something, there is no way you can successfully validate the instance XML against the provided XSD; you’re showing the XSD as having the target namespace http://www.siemens.com/med/syngo/SiemensNonImageCSAData; your XML has only unqualified content.

    The XSD has no elementFormDefault schema attribute set; it means the default is used (unqualified). However, this is not applicable to global element definitions, therefore CsaMscData must be qualified in valid instance documents.

    If you insist on a workaround without modifying the XML, then you have to modify the XSD. I don’t see any xs:include or xs:import which means it should be easy to do it.

    Manually, remove the xmlns and targetNamespace from your XSD; validate the XSD to make sure it is still valid. Then use it to validate your XML. If all works, then either use the modified XSD or do that modification on the flight: load it as XML at runtime, alter it as you did manually, write it back, then load it as XSD for validation.

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

Sidebar

Related Questions

A little help needed. I'm receiving an xml file similar to this: <?xml version=1.0
I am receiving this error. I have no clue as to why it would
I'm receiving this fatal error message: Using $this when not in object context. This
Not sure why I am receiving this after the webservice ran and I am
I'm receiving a string like this: { key1 = some value; key2 = some
I am receving an XML file as an input, whose size can vary from
I am receiving this XML error: Only one top level element is allowed in
got a little problem with receiving the contents of a xml file (using TouchXML).
I'm receiving this error in my Linq statement --- Cannot implicitly convert type 'System.Collections.Generic.IEnumerable'
I'm receiving this PHP error while trying to use the Normalizer class, specifically 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.