We have to read data from a aspx page. When we call the page with a query string, it returns an xml document with data that matches the query string.
We have an XSD that matches the xml that we get back.
I am thinking that we can read the xml document out of the http response. Will this work?
How can we "bind" the XML with the XSD, su...
As the question says really, documentation seems to say that it references another element in the schema, but how could it be used - I've never seen it in schemas that I have worked with.
Anyone got any nice use cases or something that could explain its use further?
Thanks :)
...
I'm trying to make up an xml schema for the following:
<tagSet>
<Structure>
<tag>
<name>Steve</name>
</tag>
<tag>
<name>Bob</name>
</tag>
<tag>
<name>Steve</name>
</tag>
</Structure>
</tagSet>
I would like my schema to complain that Steve is there twice, but I can't get it to work.
I have...
Hi,
I'm trying to create an xml-schema (xsd) to validate an xmlfile.
<a>
<b>
<c>...</c>
<d>...</d>
</b>
<b>
<c>...</c>
<e>...</e>
<d>...</d>
</b>
<a>
1 a-element.
Multiple b-elements, that have some content.
I want to validate that a is present in the file, and 1 or more occurances of ...
Can i get for example the node structure or something like this from the validator? Something like a listener or an handler. The exception is not enough. I have to select the node where the error occured. Thats what i build so far.
def factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI)
def schema = factory.newSchema...
I have the following:
<xs:attribute name="CarTitleID" type="xs:long" use="optional" />
In my source XML I want to allow people to say
<car CarTitleID="">
And have the XSD not fail. Is this possible?
...
Is there a library out there that can input SQL create/schema statements and construct a XSD or some sort of in memory schema model. Even if it's a DataTable. It needs to have a binding to .NET.
...
Hi, I've got a XML schema which is split to multiple XSD files. Now we need to merge them into one big XSD file. Anyone knows a good tools I can use to do it? Manually merging would be too cumbersome, and error-prone.
Thanks very much.
...
I would like to define a schema for a document like:
...
<car>
<make>ford</make>
<model>mondeo</model>
</car>
...
the problem is that I would like to constraint possible values (so ford/mondeo or audi/a4 would be valid values for make/model, but audi/mondeo would not) from external data dictionary. In case when new car models nee...
Good Afternoon Developers,
Just a quick question (I hope!)
I am creating an XSLT file through Altova Mapforce and I was wondering if anyone knows whether it is possible to specify that the XSLT stipulates to create all elements and nodes in the Output XSD file even if there is no Input stipulated from the Input XSD?
I know that I can ...
How to set enumeration restrictions for a complex type restriction??
i-e I want to define an element in the XSD such that it can have attributes and has restrictions.
...
I'm trying to construct a xsd scheme to validate a xml.
The xml is:
<payments>
<pay3>5.1</pay3>
<pay1>1</pay1>
<pay2>50</pay2>
<pay3>2</pay3>
</payments>
Tags <pay2>, <pay3> and <pay2> are optional and <pay1> is mandatory. All the <payX> tags may occur in any order and more than once or not to occur (except for <pay1>).
So far...
It is well-known how to create a "contract first" WCF service where the first step is to define the ServiceContracts and DataContracts.
How should one approach WCF development if one has the "schema first". In other words, an XSD schema has been independently developed. The service may not deviate from the schema that is already defined...
In recent versions of the free and open source Eclipse IDE you can generate XML documents from DTD and XSD files. Right-click on a given *.dtd or *.xsd file and select "Generate -> XML File...". You can choose which root element to generate and whether optional attributes and elements should be generated.
Can i use this headless (witho...
Suppose I have some schema:
<xsd:schema ...>
<xsd:element name="foo">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="fooElement" type="xs:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
This defines some element foo which has inside it...
I am very confused. I have a xsd file, no wsdl and apparently i send this data through SOAP. Now looking at all i went back and notice this
(using ssl) The regular session begins
with a HTTP POST request sent by the
client. The body of the request
contains XML document compliant with
SOME_API Request schema
So... i am not u...
Edit: This is not a dupe of my last question as I didn't want to do both at the same time anymore.
I want to specify that my setting node has either :
<setting name='Some Setting'>
SomeData
</setting>
schema is :
<xs:element name="setting">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:...
I have a DTD that I need to convert to an XSD (XML schema) file. Is there a free utility or simple way to accomplish this?
...
Lets pretend I have an XSD document and I want to produce a list of all elements along with their attributes and the children of the elements. I could also approach this by asking if you are to implement code completion based on an xsd document, and you want to list the children of the element and an elements attributes, how would you a...
I have a class library that stores several XSD files. When creating an XmlSchema class in the same library, I would like to know how to get the URI to the XSD file.
The library is being deployed with a web application. Is there a way to get the URI from the web application as well?
Thanks.
...