xml

Namespace output with XSLT 1.0 causing problems

Hi guys, i'm using XSLT 1.0 to transform some XML. I'm not quite sure the best way to explain this, so will use some examples. My input XML contains a specialization, using the xsi:type declaration. See the Payload node: <ns0:RootNode xmlns:ns0="namespace1" xmlns:ns1="namespace2" xmlns:xsi="http://www.w3.org/2001/XMLSchema"&gt; <...

Titlebar shrinks when I specify a minSdkVersion in AndroidManifest.xml

I am trying to specify the minSDKVersion: <uses-sdk android:minSdkVersion="5" /> Whenever I add this line, my titlebar shrinks a little bit. Not sure why? When this line is not in my manifest, everything is fine. <application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/Theme.DarkGra...

What happens if the minSdkVersion is lower than the targetSdkVersion?

I am getting the warning: Attribute minSdkVersion (3) is lower than the project target API level (8) How will this affect my app? ...

I need some jar for Java and xml

classical way to handle XML in java is really lengthy and scary. For this purpose i made my own class which can return me result without giving me more detail like, myXML mx=new myXML("filename"); : mx.getAll("node name"); mx.getFirst("node name"); : I had completed it 80%. But unfortunately, i had lost it in PC crash. is there any j...

SSIS Web Service Task: "Index was outside the bounds of the array" Error when accessing empty array.

I'm trying to connect to a webservice and pull in some data using the webservice task in SSIS 2005. I am able to download the WSDL file and I'm able to see the methods in the Webservice Task. I provide the necessary parameters through variables (I've even tried hardcoding the parameters). However, when I execute the task I keep getting t...

XPath Find items

How can I return all the 'make' items from the xml document using an xpath query <vehicles> <car> <make>Benz</make> <make>Nissan</make> </car> <motorbike> <make>Honda</make> </motorbike> ...

Good & Simple Ruby XML writer?

Anyone know of an easy to use Ruby XML writer out there? I just need to write some simple XML and having trouble finding one that's straightforward... ...

XML is not updated in Windows application

Hi, I have created a windows application, which gets a xml file from the URL and save it on my local machine.In this application a Timer control is set for get the updated XML file from the URL and show the update into label. I have created a setup project and Installed it on another system. Problem is that, The installed application i...

How to write a file from the document in android

enter code here import java.io.*; import javax.xml.parsers.*; import org.w3c.dom.*; import org.xml.sax.*; public class Util { public static Document stringToDom(String xmlSource) throws SAXException, ParserConfigurationException, IOException { DocumentBuilderFactory factory = DocumentBuilderFactory....

Alternate XML parser implementations for Android

I am looking for an XML parsing solution for Android besides the built-in kXML pull parser. I am trying to parse a large (4MB+) XML file downloaded from a server and the kXML parser throws an OutOfMemory error after trying to allocate a 1MB+ byte array while parsing. A good streaming XML parser shouldn't be allocating such a big array!! ...

xml serialization property order

Hi all, just a quick question. I have been looking around searching for information about the order of elements in the serialization xml document for an object. As far as I know the order (unless specified using XmlElement attributes) will be the order the properties are present in the type's code. This order, however, is not guarantee...

Reading XML as string in Java

Could somebody help me with this. I would like to know how to read this example as string? I know how to read first one but don't know how to read them all <Tr rn=\"000000000000000\" vr=\"T\" sSpre=\"S\" reg=\"P\" dSpre=\"2000-01-01\" dOdprt=\"2000-01-01\" iban=\"SI00\" eno=\"R\" vir=\"B\" maticnaPps=\"0000000000\"><Imetnik davcna=\"000...

Stucked with xslt

Hi, I"m new to xslt, and now I'm stucked a little with it. I have an XML: <map> <node TEXT="test" TYPE="node" > <element/> <node TYPE="normal" > <dummy> <FONT> mindmap_node1_l1 </FONT> </dummy> <node LINK="url.com" TYPE="node" > <dummy> <FONT> node no...

Converting string to E4X XML using Javascript

Using E4X, i can easily access nodes in XML using javascript as follows: <script language="javascript"> xmldata = <books><book><title>AA</title></book></books>; // notice the no string quotes alert(xmldata.book.title); </script> However, the application returning the data to me is returning XML as string. How can i access using this...

Looking to create a google sitemap with more than 500 pages

Can anyone point me to best sites to get this done ? From what I understand is that if your site is over 500 pages, you need to pay ? Thanks ...

JSP - write XML to console

I have large JSP page, and there is XML creation on it. For debug purpose i need to write that XML to console. What is the easiest way to do this from JSP? thank you very much on your time and energy, best regards EXAMPLE: ... My.jsp ... <portfolio> <stock> <symbol><c:out value="${bean.prop1}"/></symbol> ...

libxml2 XPATH - Selecting subset of data from XML

Hi guys, I am fairly new to XML dev.. I had a few questions regarding XML parsing with XPATH and libxml. I have an XML structured as : <resultset> <result count=1> <row> <name> He-Man! </name> <home> Greyskull </home> <row> </result> <result count=2> ...

XSL grouping xml by element

Im working with XSLT1.0 (Processor can't handle 2.0) and have a problem trying to group the output of an xml structure: <row> <order> <text> some order text 1 </text> </order> </row> <row> <payment> <text> some payment text 1 </text> </payment> </row> <row> <order> <text> some order text 2 </text> </order> </row> <row> <conta...

how to go from XML to an indexed UITableView

Hi all, I need to parse an XML file so that i can use and indexed UITableView. If I parse the xml, i create an array that holds Companys (for example). I have a class that is the Company, with it's address, etc... How can I go from one array to an array of arrays, with the A, B, C, ...? Do i must create so many arrays has the letters of...

skip over nodes with XSLT

Hello, is it possible to skip over nodes while processing a xml file. for example say i have the following xml code <mycase desc=""> <caseid> id_1234 </caseid> <serid ref=""/> ...... ...... ...... </mycase> and I want to make it look like this <mycase desc="" caseid="id_1234"> ..... ..... </mycase> currently I'm d...