xml

JAXB adding namespace to parent but not to the child elements contained

I put together an XSD and used JAXB to generate classes out of it. Here are my XSDs- myDoc.xsd : <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns="http://www.mydoc.org" targetNamespace="http://www.mydoc.org" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mtp="http://www.mytypes.com" elementFormDefault="qu...

is there anything exist to convert xml -> yaml directly?

is there any library or way exist from which I can convert my xml records to yaml format ? ...

XML size limit for XslCompiledTransform.

Is there any limit for XML size for which XSLT is applied by XslCompiledTransform in .NET (3.5)? Also, is there any limitation for a length of parameteres passed to XSLT? UPDATE: I have ment not the amount of parameters, but the length of a string, which is passed as a parameter and length of an XML text, to which XSLT is applied. ...

How to load and pass a Xforms form in Orbeon (How to Send instance to XForms) ?

Hi, I am using the Orbeon Forms solution to generate messages from filled-in web forms. I read different code snippetse in Orbeon's wiki on XForms submission from a pipeline, and I tried different solutions but it doesn't work, and there is no example with a POST from a pipeline, caught by a PFC and sent to an XForms view that receives...

Open an external XML file

Is it possible to open an external file in Android? (As XmlPullParser) ...

xsl:for-each not supported in this context

Hi! I have this XSLT document : <xsl:stylesheet version="1.0" xmlns:mstns="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:output method="xml" version="1.0"...

Clean up XML using netbeans

Is it possible to clean up XML using only Netbeans IDE? For example the indentation is not as it supposed to be. ...

Parsing a simple XML from string in Cocoa?

I have a simple XML and I need to get the first 'id' from puid-list. I found lots of examples but none of them quite do that because of the namespace. How do get the id out as an NSString? PS: I'm on a Mac. <genpuid songs="1" xmlns:mip="http://musicip.com/ns/mip-1.0#"&gt; <track file="/htdocs/test.mp3" puid="0c9f2f0e-e72a-c461-9b9a-...

XML: content is not allowed in trailing section

I'm getting these errors Multiple annotations found at this line: - error: Error parsing XML: not well-formed (invalid token) - Content is not allowed in trailing section. on this XML file... <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item android:state_enabled="false" a...

Writing XMLDocument

Hi, How can i write an xml document, with each new element at a new line in the xml file using libxml2 APIs. ...

AS3 xml loop shows many times

I have this simple code to play with xml var testXML:XML = <family> <father name1="tom" age="5" ></father> <mother name1="tomylee" age="55" ></mother> <sister name1="sister1" age="35" ></sister> </family>; for each(var element:XML in testXML.element...

How to assign XML attribute values to drop down list using XSL

Hi, I have a sample xml as; <?xml version="1.0" encoding="iso-8859-9"?> <DropDownControl id="dd1" name="ShowValues" choices="choice1,choice2,choice3,choice4"> </DropDownControl > I need to create a UI representation of this XML using XSL. I want to fill the drop down list with values specified in choices attribute. Does anyone ...

Creating XSD Dynamically

I have two inputs. I get as input one XML file. I have to create an XSD file for this XML file. This XML file has tags which depend on another input. But that XML file should have certain tags for sure. For example, the XML file has the following structure : <A> <B> <C>...</C> <D>...</D> <E> <F>...</F> <G>...</G> </E> </B> </A> Here, i...

Rexml - Parsing Data

I have a XML File in the following format: <?xml version='1.0' encoding='UTF-8'?> <entry xmlns='http://www.w3.org/2005/Atom' xmlns:gwo='http://schemas.google.com/analytics/websiteoptimizer/2009' xmlns:app='http://www.w3.org/2007/app' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;DUYGRX85fCp7I2A9WxFWEkQ.&quot;'><id>https...

How to read XML Nodes in XML using c#.net

I have a XML file like below: <report timestamp="3201" reportVersion="2" request="3981135340"> <question timedOut="false" time="3163" attempts="2" correct="true" id="13"> <answer status="attempt"> <radioButton correct="false" value="true" id="17" /> </answer> <answer status="correct"> <radioButton correct="true" value="true" id="15...

How to read from an XmlReader without moving it forwards

hey guys, I've got this scenario: while (reader.Read()) { if (reader.NodeType == XmlNodeType.Element && reader.Name == itemElementName) { XElement item = null; try { item = XElement.ReadFrom(reader) as XElement; } catch (XmlException ex) { //log line number a...

Is it possible to get specific node's children in XML AS3 Flash

I have xml files with many children and then further more children. like <level1> <child id=1 > <nodes....> </child1> <child id=2 > <nodes....> </child1> <child id=3 > <nodes....> </child1> <child id=4 > <nodes....> </child1> </level1> Is it possible to get the children nodes of child with id = 1 in AS3 ...

reading root element in xml not the child

Hi I am working on an application which reads XML file. Here I am trying to read "name" node under the "a"node not under the node "b". When I tried to read the root "name" node I get both nodes. Please help me to solve the problem. Bellow is the sample. <a> <x>rrr</X> <b> <name> 123 </name> </b> <n...

NSXMLParser error code 65

Hi guys, NSXMLParser is giving me the following error: "Error 65, Description: (null), Line: 1, Column: 47" I've checked the documentation, and it says that a space is required at column47??. Was hoping someone can help out on this? The raw xml file is as follows. Strangely, the parser works intermittently at times, and for the same xm...

Android layout with sqare buttons

I want to make a layout similar to this one: Four square buttons on the screen - each of those using half of the screen with/screen height (whichever is smaler). Independent of screen size/resolution. I already tried to achieve this by using a LinearLayoutbut the buttons are ending up using the correct width, but still having the hei...