I have an XSD that I created. A Transaction Header can one or more Transaction-Items. This XSD will only allow ONE Transaction Header and multiple Transaction-Items in an XML file. I am looking for MULTIPLE Transaction Headers with it's related multiple Transaction-Items. What is missing in the XSD to allow me to do this? Thanks. ...
This is a two part question. The first is a specific question about DataSets and XML. The second is a more general "am I taking the right approach" type question. While I'd certainly appreciate replies that answer both questions, I'd also welcome answers that only tackle one or the other!
Question 1
Does the DataSet class support mixed...
I have a JAXB class like this:
public class Game {
private Date startTime;
@XmlElement
public Date getStartTime() {
return startTime;
}
public void setStartTime(Date startTime) {
this.startTime = startTime;
}
}
which results in an .xsd where startTime has type xsd:datetime. I want it to be xsd...
Hi!
Does this file exists? I'm tired of the 'Could not find schema information for attribute' messages.
Thanks
...
I'm still stuck with using arrays in XSD generated classes, as my XML schema is too complex for xsd2code, which created generics-based generated classes.
Is their any way to tell the cell number of an array when using foreach across it? Is there any way to do so in LINQ?
...
I 'am developing an interface between my system and other system based on XML messages that will be sent over the internet (by web services).
I've created an XSD schema files to define the message structure.
I 'am using Microsoft Biztalk to create the sachems and new in this field.
I've build an validation process for the incoming and ...
I'm trying to decide whether it is possible to store custom attributes in a SPField's schema XML.
If you look at the .xsd for the 'Field' element in SharePoint, there are a slew of attributes. The last one in the attribute list is <xs:anyAttribute>. This elements purpose is to allow it be extended. This obviously leads me to believe it...
What is the easiest way to obtain a statically typed representation of an XML schema (.XSD) in Java?
More specifically I want to be able to programatically traverse all defined simpleType:s and complexType:s in the XSD, obtain defined elements and their types, etc.
Something along the lines of:
for (XsdComplexType complexType : docume...
What is the XSD syntax, given
<xs:element name="PhoneNumber" type="xs:string" ...? >
, to specify the following format for a phone number:
12 characters and area code is digits.
example of values:
<PhoneNumber>213-555-5845</PhoneNumber>
<PhoneNumber>213-695-CARE</PhoneNumber>
<PhoneNumber>213-4URGENT</PhoneNumber>
...
I'm new to XSD, and I'm quite confused as to when to use attribute, and when to use element?
Why cant we specify minOccurs and maxOccurs in attribute?
Also, why is it we cannot specify use="required" in element?
...
I have a XML and XSD I want to add a record to trck table with Dataset i'm also write that code but need trackListrow...
how can i handle that?
playListDS rec = new playListDS();
if(File.Exists(Server.MapPath("~/playlist.xml")))
rec.ReadXml(Server.MapPath("~/playlist.xml"));
int id = int.Parse(r...
I have a scenario where I define the XSD first, then generate the cs files from these XSD (using xsd.exe). I need to take this 2 steps furthur by generating the dbml from these and then calling CreateDatabase() on that dbml).
So the question is, does anyone have an idea how to create dbml from either an XSD or a cs file?
Thanks
Ash
...
In a recent task at work, I've been building the PHP end (using SimpleXMLElement) of an XML interaction with a .NET app. I've been encountering differences in conceptual thinking with my counterparts in .NET land, specifically because they're just using the XSD/XML libraries in .NET without thinking much about that, whilst I'm finding my...
I came across a legacy XSD that has a bunch of lines like...
<xs:element minOccurs="1"
maxOccurs="1"
default="true"
name="Ready" type="xs:boolean" />
...where minOccurs and maxOccurrs both equal 1, AND there is a default value. Is there any benefit to having the default attr...
Hi,
I've got the following simple type coming from a Corba IDL translated to xsd:
<xs:simpleType name="fooType" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:restriction base="xs:string">
<xs:enumeration value="bar" />
<xs:enumeration value="baz" />
</xs:restriction>
</xs:simpleType>
The problem I'm facing is ...
I've been fighting with this for some time now, and haven't been able to find a clear answer to this yet.
As I understand correctly I can store data in an XML file, validate it using an XSD and then display the data neatly using an XSLT.
However I've been having issues trying to perform XPath queries to select the data I wish to displa...
Hi
I'm generating a lot of XMPP stanzas, and want to validate them against the specs available here in my unit tests.
At the moment I am using Nokogiri to achieve this with something like
xml = Nokogiri::XML( xmpp_stanza)
schema = Nokogiri::XML::Schema( xmpp_schema )
assert schema.valid?( xml )
Now this works fine except it gets...
Dear all:
I have encountered a problem that I need to import a huge XML (> 1Gb) into SQL Server 2008 daily. What I have now is a sample XML file and the XML schema of it. The XML schema is pretty complex which contains many custom defined simple type, and element with complex type such as:
<xs:element name="xxxx_url">
<xs:complexT...
I'm writing an XSD schema which has an element that describes a file structure:
<xs:schema
...
>
<xs:element name="FileStructure">
<xs:complexType>
<xs:sequence>
<xs:element ref="Folder" minOccurs="1" maxOccurs="1" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Folder">
<xs:...
Hi
I am designing a new XSD to capture points information from a business partner. For each transaction the partner must provide a value of points for at least one points type. I have the following:
<xs:element name="Points">
<xs:complexType>
<xs:sequence>
<xs:element name="SKUPointsQty" type="xs:int" minOccurs="0"/>
...