473,383 Members | 1,953 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Redundant qualified xsi:type's

I have created a schema to write out some configuration data, and the OutPort
element uses an abstract complex type (it can be a Message, Discrete,
Continuous, Array, etc...).
I use the provided XSD.exe tool with the /c option to generate the
XML-attribute'd classes.

When the data is written to disk is looks like this:
<OutPort xmlns:q1="urn:MicroMax:MxVDev:3.x"
xsi:type="q1:SignalDiscrete" Name="brd0/di0">
<Minimum>0</Minimum>
<Maximum>1</Maximum>
</OutPort>
<OutPort xmlns:q2="urn:MicroMax:MxVDev:3.x"
xsi:type="q2:SignalDiscrete" Name="brd0/di1">
<Minimum>0</Minimum>
<Maximum>1</Maximum>
</OutPort>
<OutPort xmlns:q3="urn:MicroMax:MxVDev:3.x"
xsi:type="q3:SignalDiscrete" Name="brd0/di2">
<Minimum>0</Minimum>
<Maximum>1</Maximum>
</OutPort>

This continues on for all the signals, with the q#'s ever increasing.

It seems like anyone that works with abstract types must have run into this,
and hopefully it's something simple that I need to.
I tried setting various parts of the XSD to have unqualified names, but from
what I've read, xsi:type's must be qualified.

Is there a way to force an extra xmlns entry in the root node so that the
serializer doesn't have to create all these redundant q# namespace's?
Ideally I'd like all the q#:'s replaced with mxv: and an
xmlns:mxv="urn:MicroMax:MxVDev:3.x" to appear on the root node.

Thanks in advance for any ideas or direction.
Sep 14 '07 #1
0 1959

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Carl Lindmark | last post by:
*Cross-posting from microsoft.public.dotnet.languages.csharp, since I believe the question is better suited in this XML group* Hello all, I'm having some problems understanding all the ins and...
0
by: Carl Lindmark | last post by:
Hello all, I'm having some problems understanding all the ins and outs with datasets and datatables (and navigating through the filled datatable)... Just when I thought I had gotten the hang...
1
by: PeterW | last post by:
I have a bit of xml that I am trying to create an xsd schema from. A very simplified version is as follows: <?xml version="1.0" encoding="UTF-8"?> <centre...
0
by: Adam | last post by:
I am attempting to get a .net 1.1 client to interoperate with a .net 2.0 web service. The web service returns objects that contains fields of nullable types. Obviously when the 1.1 client receives...
0
by: tim.almond | last post by:
I have an arraylist with up to 4 different classes that can be contained. e.g.... <carpark> <car /> <truck /> <motorcycle /> <rv /> </carpark>
0
by: frugalprogrammer | last post by:
I'm pretty sure what I'm up against now is a namespace issue and/or a misunderstanding of how to use SoapVar. From the NetSuite docs, the request should look something like: <soapenv:Body>...
1
by: luthriaajay | last post by:
I am creating an element called 'i:Details' which has an attribute called xsi:type <xsl:element name="i:Details"> <xsl:attribute name="xsi.type"> xsl:text>i:vanilla.stock</xsl:text>...
8
by: robtyketto | last post by:
Greetings, My XML schema defines a customer to be of type UK or Non-UK European making use of xsi:type. The difference between the complex UK and Non-UK European customer types is they have an...
2
by: oh.i.love.spam | last post by:
This is just an example... I don't have the access/ability to upload the actual code. Here is the meat in the XML that is returned from the $client- <VesselConfigurations...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.