473,854 Members | 1,433 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XsdObjectGen - XmlText(DataTyp e="System.Strin g")?

Feeding the following .xsd into the XsdObjectGen (v1.4.2.0) tool produces an
invalid [XmlText] attribute: with DataType="Syste m.String". Has anybody seen
this behaviour before? Is this a bug in XsdObjectGen? or a problem with the
input schema? I'm trying to avoid hacking the generated code...


<?xml version = "1.0" encoding = "UTF-8"?>
<xsd:schema elementFormDefa ult="qualified"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<xsd:element name="revenueTy pe">
<xsd:complexTyp e>
<xsd:simpleCont ent>
<xsd:extensio n base="Restricte dLength20">
<xsd:attribut e name="scheme" type="xsd:strin g" />
</xsd:simpleConte nt>
</xsd:complexType >
<xsd:simpleTy pe name="Restricte dLength20">
<xsd:restrictio n base="xsd:strin g">
<xsd:maxLengt h value="20" />
</xsd:restriction >



[XmlText(DataTyp e="System.Strin g")]
[EditorBrowsable (EditorBrowsabl eState.Advanced )]
public string __Value;



Nov 14 '05 #1
0 1484

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

Similar topics

by: Burak | last post by:
Hello, I am working on a VB.NET web service that will be used to send and receive job openings. I would like to use their "industry standard" xsd file http://ns.hr-xml.org/2_2/HR-XML-2_2/StandAlone/PositionOpening.xsd which specifies the formatting for job openings.
by: Pavan | last post by:
Hi, I received an error from a schema using the much hyped XSDObjectGen: Unexpected error occured in XSDObjectGen : Specified cast is not valid. Please send the schema to support. However xsd.exe (.NET v1.1) worked ok (did'nt give an error). I wonder how long we'll have to wait before we get a stable and comprehensive conversion from schema to class.
by: colinco | last post by:
Just out of curiousity, what are the deficiencies you've found with the new xsdobjectgen tool?
by: Bobby | last post by:
I have a schema and have used XSDObjectGen.exe to create a set of classes that represent the schema. What is the best way to fill xsdobjectgen.exe generated classes with data? I want to create and serialize an instance of one of the classes in this schema. the class is declared publicly, but isn't accessible outside the namespace: ...
by: Edward Clements | last post by:
I'm looking for a good tool to generate C# classes (from XSD-schemas) to (de-)serialize XML corresponding to those schemas. XSDObjectGen almost meets these requirements -- only, I need to generate a ..cs file for each common .xsd file that is included (xsd:include) -- there are a lot schemas which include several common .xsd files (full schema at http://www.witsml.org/schemas/WITSML120_2003-01-30.zip). The "/s" switch would have beein...
by: Peter Bates | last post by:
Hi, I'm just getting used to XSDObjectGen and i have the following question. Can i use a class inherited from a class generated by XSDObjectGen with XmlSerialize? Specifically, I have many xml files arriving from a PC inventory scanner we use. I wish to deserialize them and then process them.
by: Pascal Brunot | last post by:
Hi, Running XSDObjectGen ( on the following Infopath-generated XSD gives an "unexpected error": "Event register full" during generation (exact english error message may differ, i am using the italian version). VS.net 2003 accepts the XSD. The strange thing is that I managed using XSDObjectGen on much more
by: Jeff Killberg | last post by:
I am working on a .NET 2.0 project where we will be defining a large object model in XML schema and generating the C# code to process XML documents conforming to this XML schema into the object model. On a similar project, we used XsdObjectGen.exe. I am trying to determine if there are major enough reasons to use XsdObjectGen or if the .NET 2.0 version of Xsd.exe will suffice. Our XML schema will be defined using a fairly minimal set...
by: Veerle | last post by:
Hi, I am experiencing a lot of problems with XsdObjectGen. I downloaded the latest version from http://www.microsoft.com/downloads/details.aspx?FamilyID=89e6b1e5-f66c-4a4d-933b-46222bb01eb0&DisplayLang=en but this is dated september 2006, so it's not very recent. We receive xsds from a third party and our application has to generate xml that is valid for these xsds. This makes that we cannot alter the xsds in any way, we have to...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.