I am quite new to ant and have been looking at the tasks. I am trying to generate an xml file. Do I need to call an external process or does ant have some way to do this? It could be as simple as sending a string to a txt file and saving it as a .xml. Is it possible?
...
I'm trying to write an Android 2.2 app that will find installed apps that can be moved to the SD card. The permission to do this is encoded in the AndroidManifest.xml file as the root-level attribute "android:installLocation". PackageInfo seems to have an interface to everything but this attribute. I can open the installed apk and ext...
I have the Spring STS plugin activated within my Eclipse project. Doing this enabled many cool Spring features including specialized management of Spring bean files. However, I noticed that the project settings for Spring allows for the creation of "Config Sets" -- which look like groups of bean configuration files.
I cannot find do...
I have a list management appliaction that stores its data in a many-to-many relationship database.
I.E. A note can be in any number of lists, and a list can have any number of notes.
I also can export this data to and XML file and import it in another instance of my app for sharing lists between users. However, this is based on a lega...
I am trying to parse this xml document in which a newline is required for certain fields and must be inserted into the database with the newline. But I've been running into problems.
1)First Problem: \n Character
The first problem I had was using the \n like below.
<javascript>jquery_ui.js\nshadowbox_modal.js\nuser_profile.js\ntableso...
Hello
I have to change "unknown" contents of XML. The structure and content itself is valid.
Original
<blabla foo="bar">
<aa>asas</aa>
<ff>
<cc>
<dd />
</cc>
</ff>
<gg attr2="2">
</gg>
...
...
</blabla>
becomes
<blabla foo="bar">
<magic>
<aa>asas</aa>
<ff>
...
Is there a built-in schema datatype for xhtml data? Suppose I want to specify a "boozle" element that contains two "woozles", each of which is arbitrary xhtml. I want to write something like this, using the relax NG compact syntax:
namespace nifty = "http://brinckerhoff.org/nifty/"
start = element nifty:boozle {woozle, woozle}
woozle...
Hi folks,
I have a question regarding Linq to XML queries and how we could possibly make them more readable using the new dynamic keyword.
At the moment I am writing things like:
var result = from p in xdoc.Elements("product")
where p.Attribute("type").Value == "Services"
select new { ... }
What I would lik...
I've been trying to import shape xml to customized View. like this,
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid
android:color="#f0600000"/>
<stroke
android:width="10dp"
android:color="#00FF00"/>
<corners
android:radius="15dp" />
<padding
android:left="10dp"
android...
I know this has been asked to death, but I cant seem to find the answer i'm looking for...
I've put together a simple Flash/XML image gallery and I would like to preload the images - Simple process.
Get the XML data
Preload the images
When all images are preloaded, go to next frame
Here is my code thus far:
var myXML:XML = new XML()...
I had been assigned to develop a system on where we would get a XML from multiple sources (millions of xml) and put them in some database like and judging from the xml i would receive, there wont be any concrete structure even if they are from the same source. With this reason i think i cannot suggest RDMS and currently looking at NoSQL ...
I'm building an application where space is at a premium. I'd really like to use JAXB's unmarshalling capabilities, but including the whole library is out of the question. Has anyone pared it down so that only the bits needed for unmarshalling are included?
...
I'm using the Apache web service xml rpc library to make requests to an rpc service. Somewhere in that process is a xml document with a DTD reference to http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd, which the library attempts to download when parsing the XML. That download fails with a 503 status code because the w3c is blocking r...
Hi,
I have this XML:
<rootCategories>
<category id="1">
<category id="2">
<category id="3">
<category id="4" />
<category id="5" />
<category id="6" />
</category>
<category id="7" />
</category>
</category>
</rootCategories>
A...
I have tried to use xpath in Android 1.5, but it does not seem to work?
Could someone please tell me the best practice on retrieving a value from XML in this case? If you have any worked through examples, that would be a real help!
Also, my XML is as a string, so I will need to convert it to be an xml document resource?
...
Hi there,
I am generating an XML stream with a DomDocument. I need the pure XML stream, so I don't want to change the sourcecode with an xsl Transformation. Nevertheless I want people to be able to 'read' the XML in their browser without right click->View Source.
So what I do is I create a DomDocument and add a processing instruction:
...
I am trying to read xml into a webpage from another server, and I assume that my problem is Same-Origin Policy, and therefore a cross domain problem.
I have a bit of googling and it seems that jsonp is the way forward.
Based on some examples I found here on stackoverflow and another sites, this is what I have, and it does not "hit" the ...
I have an XSL code that processes some nodes and if some condition is true, before doing apply-template select="." i need to modify current node(add and attribute).
How can i add an attribute to the node before calling apply-template select=".", or it is not possible at all ?
...
I'm beginning to work on a project which has some extensive XML XSLT processing to render output HTML.
Some changes need to be made to the XSLT and I need some tool that can help me modify it without having to run the solution every time. Something that can help me visualize the changes I'm making to the rendered HTML.
I've found Stylu...
Hi,
I got the following error,
An invalid character was found in text content. Error processing resource
when I dynamically created xml file using php.The encoding I used was utf-8.I changed it to ISO-8859-1.The error resolved.But the issue is I am having tamil,hindi content So it is displayed as
à®à®à¯à®°à®¾-à®à¯à®à¯à®à¯-
header(...