I have the following elements in my schema:
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="optimizeModelBase">
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
<xs:complexType name="riskModel">
<xs:complexCont...
Is there an open-source method to do this? Maybe XSLT? I am looking at developing this using mono or java
I have a set of XSDs that are seeminingly impossible to do an automatic converstion to classes/ddls, I am looking to find a low cost low foot-print solution to this problem.
Essentially trying to convert these XSDs into a GUI Form ...
I'm trying to edit an XML schema in Visual Studio 2010 Ultimate RC, but when I go to the toolbox (with the schema open and focused) there's absolutely nothing in the Toolbox view, even when every tutorial out there that I've read tells me that there should be. I've tried using the context menu option for resetting the Toolbox to no effec...
There are two ways to specify lists of values in XML. Variant 1:
<Database Name="myDatabase">
<Table Name="myTable1" />
<Table Name="myTable2" />
<Table Name="myTable3" />
...
</Database>
Variant 2:
<Database Name="myDatabase" Tables="myTable1 myTable2 myTable3 ..." />
Clearly, Variant 1 is cleaner and can be exten...
I am trying to write some XML schema code to specify that a particular element 'abc' may have a child element with name 'xyz', and that element may have any attributes, and any child elements.
At the moment I have this:
<xs:element name="abc">
<xs:complexType>
<xs:sequence>
<xs:element name="xyz">
...
I'm looking for open-source projects that make use of two things: (1) C++ and (2) XML data binding. For those who don't know, data binding tools make use of XML schema and code generators such as Codesynthesis xsd, Liquid Technologies. I know CIAO/DAnCE project, an implementation of CORBA Component Model that uses XML Schema Compiler (XS...
I'm wondering if I am missing something obvious.
I have a list of numbers, possibly including ranges (think of the print page option of a print dialog).
Ideally I'd like to have the final XML output look like this, with page and pageRange in an order.
<pages>
<page> 1</page>
<pageRange><start>3</start><end>6</end></pageRange>
...
I am calling a web service (written in Java) in my web app. I use the WSDL to generate proxy classes using the wsdl.exe command line tool.
Everything is working fine.
However, I have found out that the web service is not doing any data validation at all when they receive a request from my app. Hence, if I happen to send one minute pi...
Hi,
My question is about defining an XML schema that will validate the following sample XML:
<rules>
<other>...</other>
<bool>...</bool>
<other>...</other>
<string>...</string>
<other>...</other>
</rules>
The order of the child nodes does not matter. The cardinality of the child nodes is 0..unbounded.
All the chi...
Our application uses a XML configuation file. I thought that it would be nice to distribute some XML editor with our application, so that the user can conveniently edit the config file. Features should be:
Small and lightweight (ideally, a small .exe that does not require installation),
free, with license terms that permit distributing...
Hello SO,
I'd like to ask people's thoughts on an XSD problem I've been pondering. The system I am trying to model is thus:
I have a general type that represents some item in a hypothetical model. The type is abstract and will be inherited by all manner of different model objects, so the model is heterogeneous. Furthermore, some types ...
Hello,
I know it is probably a question against XML philosophy but still is it possible to define schemata for XML like this:
<Root>
<arbitrary-name-of-node>
<Name></Name>
<Position></Position>
<!-- ... -->
</arbitrary-name-of-node>
<arbitrary-name-of-node>
<Name></Name>
<Position></Position>
<!-- ... -->
</...
Hi,
I'm working on a xml schema resolver and I'm using JAXB with XMLSchema.xsd.
I experience problems with JAXB, because I don't get classes for all the top level elements. For example for
<xs:element name="maxLength" id="maxLength" type="xs:numFacet">
I do not get a class MaxLength or anything like that. Only NumFacet exists.
Anyo...
I am using xjc to generate Java classes from the XML schema and the following is an excerpt of the XSD.
<xs:element name="NameInfo">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element ref="UnstructuredName"/> <!-- This line -->
<xs:sequence>
<xs:element ref="StructuredName"/>
<xs:eleme...
Hello,
I would like to examine a XSD schema in python. Currently I'm using lxml which is doing it's job very very well when it only has to validate a document against the schema. But, I want to know whats inside of the schema and access the elements in the lxml behavior.
The schema:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http:/...
xmlns:m="http://www.MangoDSP.com/mav/wsdl" as localfile:"ma.wsdl"
xmlns:m0="http://www.MangoDSP.com/schema" as localfile:"MaTypes.xsd"
how can i validate it.
...
Is it possible to write an XML Schema that describes an XML document that lists a set of elements and then requires other elements on that same XML document to use those values as either attributes and/or sub-elements?
Example: define a list of locations, then force location attributes and/or location elements to be of those values.
<r...
I am trying to create a schema that has 2 address types. The first AdressType requires an element Line 1 to have a value at least 10 characters. The second type OtherAdressType derives from this with the same elements, but does not require a value for Line 1.
I've tried different ways but always get schema errors, this error is:
Invali...
Hi
I am reading the tutorials on w3cschools ( http://www.w3schools.com/schema/schema_complex.asp ) but they don't seem to mention how you could add restrictions on complex types.
Like for instance I have this schema.
<xs:element name="employee">
<xs:complexType>
<xs:sequence>
<xs:element name="firstname" type="xs:string"/>...
Hi,
I want to achieve below thing in vtd-xml xml modifier class.
Original xml
<xml>
<element attr1='1' attr2='2' attr3='3'>text</element>
</xml>
int p = vn.getText()
xm.updateToken(p, "new text");
But the code here is modifying the text to new text but it's not copying all the attributes. Any idea how to achieve this?
Other op...