JAXB - Remove 'standalone="yes"' from generated XML
Hi people, Do you know of a JAXB setting to prevent standalone="yes" from being generated in the resulting XML? <?xml version="1.0" encoding="UTF-8" standalone="yes"?> ...
Hi people, Do you know of a JAXB setting to prevent standalone="yes" from being generated in the resulting XML? <?xml version="1.0" encoding="UTF-8" standalone="yes"?> ...
This is more of an generic XML Schema question, but if and how do you specify field dependencies in an XML Schema. For example, how would I say fieldB is required, if fieldA is provided ??? ...
I would like to edit XHTML files using Emacs' nxml-mode which can use rnc schemas for on the fly validation. This is all built in to newer Emacs versions. However, my XHTML files contain elements from another schema. So <foo:foo> tags are valid, but only within the <xhtml:head> of the document. Currently, nxml complains because the XHT...
I've always preferred using XSD.exe/VS.Net to generate schema, generate classes off the schema, deserialize xml file into object tree to parse an XML file. [Well, most of my requirements thus far have made this a perfect choice]. I've a crib though: The class names generated by XSD.exe are weird - meaning XSD.exe strives to keep them u...
I am adding a method to a SOAP service. I would like this method to be able to return a map. More specifically it is map of lists (vectors/arrays). How would I capture this in its WSDL? ...
Hello, I have this XML pattern... <module> <promo> <day>1</day> <day>2</day> </promo> <promo> <day>3</day> <day>4</day> </promo> <promo> <day>Default</day> </promo> </module> I would like to stop users putting the same value into 2 <day> tags anywhere in the <module> tag. I can current...
Is it possible to generate a XML Schema of a Database programatically with .Net and C#? I want to look into NDbUnit but for big databases it would not really be feasible to make a Schema manually? EDIT: Question wasn't clear. ...
I have an XML file and an XML schema in another file and I'd like to validate that my XML file adheres to the schema. How do I do this in Python? I'd prefer something using the standard library, but I can install a third-party package if necessary. ...
I am in the process of creating an XML Schema and one of my values is a year. As such, I'd like to ensure that all values have exactly 4 characters. To do so, I am using the following syntax: <xs:element name="publish_year" maxOccurs="1"> <xs:simpleType> <xs:restriction base="xs:positiveInteger"> <xs:totalDigits value="4"/...
I work on a W3C XML Schema (not written by me). One tool, xmllint, refuses to use the schema: traceroute.xsd:658: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element', attribute 'maxOccurs': The value '4294967295' is not valid. Expected is '(xs:nonNegativeInteger | unbounded)'. 4294967295 is 2^...
I have designed a xml schema to parse an incoming xml document. The receive location gets xml documents from 2 feeds, one of them has misspelled a node in the document, "Roookie" instead of "Rookie", Is there a way to have my existing xsd parse this document? ...
I was wondering if there's a way I can automate the generation of XML files from XSD schemas given that I have the data and the labels. I'd like to do this in python/java. It seems very possible, yet I can't find any library that allows me to do this. I'm looking for a fairly quick solution.. Any ideas? See also: how-to-generate-samp...
I have some XSD-s that define my objects hierarchy. for example math.xsd, base.xsd while math.xsd is depends on base.xsd. I need to generate classes from those xsd-s. I've already read about those two tools: CodeXS tool and XSD.exe. the problem with the xsd.exe is that I didn't succeed generating classes from two xsd-s that depends on...
Is it possible to create an XML Schema which imposes a co-occurrence constraint to an attribute/element pair? <primitive-list> <primitive name="P1"> <definition><!-- primitive specification --></definition> </primitive> <primitive name="P2"> <definition><!-- primitive specification --></definition> </primitive>...
In the XSD, there are two elements, A and B. They are siblings. A can have a value of either "1" or "2". B can have a value of either "one" or "two". I want to restrict this, however, so that only "1-one" and "2-two" are valid combinations, not "1-two" or "2-one". Is there a way of doing that in the XSD? ...
The top of my web.xml file looks like this: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd" version="2.5"> But I still get the wa...
When editing an XML file in IntelliJ IDEA, if the document references a schema, IDEA will fetch the schema and use the information for auto-complete. It knows which tags are valid in which contexts, so when you hit CTRL-space, it suggests only those tags. It also highlights any tags that are invalid according to the schema. Does anybo...
I am looking for a reference describing precisely the XML project file format used by CodeWarrior. I managed to find XSD files for recent versions of Visual C++ (here), could anyone point me to some equivalent for CodeWarrior? ...
Hi friends, I had created the xml document with xml version="1.0". In that document I need to use the greater than symbol > and less than symbol <. How should I include those symbols? It's not working. > and < are not working for me. Is there any special encoder for this? Please help me. ...
I currently have two XSD schemas and one is a "light" version of the other. Right now I have everything in the "light" version repeated in the "complete" schema, but this becomes a pain when I need to make a change, and it goes against the DRY principle anyways, so I was wondering if there was an element that served to include another sc...