I have an XML schema (XSD) that defines an element as mandatory (call it the parent); this parent has, lets say, five child elements, which can all be optional, BUT AT LEAST ONE child element must occur.
How can i specify this in the xsd?
To clarify: The children are different elements and optional.
For example.
<Parent>
<Child1>co...
I'm developping a xml data format. Besides other data there should be a xaml drawing. So I wanted to have a xml element, which can contain any valid xaml. How can this be expressed in the XML Schema? I tried to import the xaml schema, but I couldn't find a xsd file for it. The makeshift would be to use an encoded string.
...
I am having following peice of code ,where in i am trying to serialize and deserailize object of StringResource class.
Please note Resource1.stringXml = its coming from resource file.If i pass strelemet.outerXMl i get the object from Deserialize object ,but if i pass Resource1.stringXml i am getting following exception
{"< STRING xml...
Hi I , I get the followinng Xresponse after parsing the XML document:
<DIDL-Lite
xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"
xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/">
<item id="1182" parentID="40" re...
Hi stack, i'm working on an app that loads some data from xml file from internet.
Is this a good way to develop iPhone apps??...I think xml is more light than SQlite database...
Basically my logic is:
1 - Parsing Xml file from internet to retrive the data
2 - Load data on device
Security?..other stuff??..
Thanks
Mat
...
I'm having trouble creating an XSD for some xml.
A bit of background might help. The xml is for messaging. In particular, the message
is designed to be simple, and designed to be cross referenced easily. At its heart
is a recursive key value set up.
Simple Key values are like this.
<key name="quantity">5</key>
<key name="pric...
I have an xml document (XmlDocument) which looks like this...
<stuff xmlns:n="hhtp://tempuri.com/">
</stuff>
... and a "fragment" (string) which looks like this
<things>
<thing n:type="info">
</thing>
</things>
I want to "inject" the fragment into the main document.
How?
(HINT: You can't use XmlDocumentFragment because th...
I've been looking for solutions to this problem for far too long considering how easy it sounds so I've come for some help.
I have an XML Schema which I have used with xjc to create my JAXB binding. This works fine when the XML is well formed. Unfortunately it also doesn't complain when the XML is not well formed. I cannot figure out...
<autos>
<cars>
<car>
<type>Toyota</type>
<year>1999</year>
</car>
<car>
<type>Honda</type>
<year>2010</year>
</car>
</cars>
</autos>
i want to extract car object from the above code whats the possible way. can i have the sample code or any example
thanks in advance
...
Hello.
I need a recommendation for a pythonic library that can marshall python objects to XML(let it be a file).
I need to be able read that XML later on with Java (JAXB) and unmarshall it.
I know JAXB has some issues that makes it not play nice with .NET XML libraries so a recommendation on something that actually works would be great.
...
Hey, so having an issue with writing out to an xml file.
Works fine for single requests via the browser, but when I use something like Charles to perform 5-10 repeated requests concurrently several of them will fail.
The trace simply shows a 500 error with no content inside, basically I think they start timing out waiting for write acces...
How do I use SplitLayoutPanel with UIBinder? I've tried so many different things but none of them work properly.
...
I have a bunch of (50+) XML files in a directory that I would like to insert into a SQL server 2008 table.
How can I create a SQL script from the command prompt or Powershell that will let me insert the files into a simple table with the following schema:
XMLDataFiles (
xmlFileName varchar(255)
, content xml
)
All I need is for som...
How to get the XML translation to HTML dropdownlist with ajax? I send the parameter with GET method but the JSP file that generates the XML don't receive it.
var url = "responsexml.jsp";
url = url + "?projectCode=" + prj.options[prj.selectedIndex].value;
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET", url, true);
xmlhttp.se...
So I'm a beginner in XML DOM and JavaScript but I've run into an issue. I'm using the script to display my XML data in a table on an existing site. The problem comes in nesting a loop in my JavaScript code.
Here is my XML:
<?xml version="1.0" encoding="utf-8"?>
<book_list>
<author>
<first_name>Mary</first_name>
<last_name>Abb...
What component would you choose to display XML data in a AWT/Swing Java GUI?
Requirements:
Editable
Basic Syntax Highlight (tags vs.literals)
Pretty-print (i.e. don't display everything in the same line if the XML contains no linebreaks).
...
Reading about WPF and thinking about my application's data store at the same time led me to wonder if there are any languages or tools that allow you to define relational data in a declarative way?
A shallow Google search suggests no such thing exists. Yet it seems so obviously useful. The kind of tool I have in mind would declaratively...
I have a xml document holding a small data for my project where I want to convert my xml to an excel file (microsoft office excel 2003 and over)
How can I do this programmatically?
...
Is there a way to validate an XML file against a DTD with Qt's XML handling? I've tried googling around but can't seem to get a straight answer. If Qt doesn't include support for validating an XML file, what might be the process of implementing validation myself? Any good reference to start with in regards to validating XML against a spe...
I'm trying to parse an XML file (OSM data) with expat, and there are lines with some Unicode characters that expat can't parse:
<tag k="name"
v="абвгдежзиклмнопр�?туфхцчшщьыъ�?ю�?�?БВГДЕЖЗИКЛМ�?ОПРСТУФХЦЧШЩЬЫЪЭЮЯ" />
<tag k="name" v="Cin\x8e? Rex" />
(XML file encoding in the opening line is "UTF-8")
The file is quite old, and there...