I have an xml document with separators deep down in the hierarchy.
<A>
<B>
<C id='1'/>
<separator/>
<C id='2'/>
</B>
<B>
<C id='3'/>
<separator/>
</B>
<B>
<C id='4'/>
</B>
</A>
I want to move the separators upwards, keeping elements in order. So the desired output is
<A>
<B>
<C id='1'/>
</B...
I'm experimenting with REST and XML on an Android application, primarily to create a REST client
For handling XML returned from a given REST service, I'm tempted to use a simple framework such as XStream. This allows me to easily map an object onto XML and vice versa, it doesn't come with the memory overhead like DOM, and requires consi...
hello,
using asp.net 3.5 I am trying to generate a formatted excel spreadsheet
and the way i am doing it is:
1.Format the excel sheet with data
2.Save it as an xml spreadhseet
3.View it in notepad/textpad and remove the "data" from the xml and have a content holder
such as "DYNAMICDATA"
4.Build dynamic xml for data and replace the ...
Hello everyone.
I am trying to get certain output for svn command in XML format. Output is ok when I type valid parameters. However, when I type in wrong password, output does not show error message.
This is the PHP code:
exec('/usr/bin/svn --username something --password something --non-interactive log -r HEAD --xml --verbose http://a5...
I create a xml document and try to get the string out of it like this:
string path = "c:\temp\window.xaml";
FileStream stream = new FileStream(@path, FileMode.Open);
XmlDocument doc = new XmlDocument();
doc.Load(stream);
string insideString = doc.FirstChild.OuterXml;
Here is the content of a window.xaml file:
<Window
xmlns="http://...
Hi.
Currently porting an iPhone application to Android. I've encountered an issue that I haven't been able to overcome.
On the iPhone, translating your text is trivial. Put all your strings/text in Localizable.strings in the format:
"sentence to translate" = "sentence translated"
The original string can contain any characters of any t...
<?xml version="1.0" encoding="utf-8"?>
<WorkItems>
<WorkItem Duration="1" ID="1" Title="this breaks: ""></WorkItem>
</WorkItems>
I embed this XML into my Flex 4 app:
<fx:XML source="data.xml" id="Data">
</fx:XML>
And I get an error: TypeError: Error #1090: XML parser failure: element is malformed.
If I remove the quot part o...
I have the foll xml can anyone please guide me how can i render it in html table.
<order po="123" contact="me" comment="out of stock reorder">
<shippingAddress line1="123 Fake St" city="Madison" state="WI" zip="12345" />
<lineItem id="1" quantity="50" comment="for me">
<part number="XYZ123" descr="Spark Plug" price="5.00" we...
Hi all,
I am in charge of a website, and I have set up a "Quote of the Day" which currently is quite simplistic. See Here (on the right of the page)
What it currently does is it gets the Day of the month and the month, and normalises to one, then multiplies by the number of quotes (stored in an xml file) and rounds down. While this met...
I have some data which looks like:
<data>
<row>
<v>0.0264</v>
<v>1073655665.0000</v> <!-- select this -->
<v>1073749988.0000</v>
</row>
<row>
<v>0.0056</v>
<v>1073655714.0000</v> <!-- select this -->
<v>1073751235.0000</v>
</row>
<row>
<v>0.0052</v>
<v>1073655812.0000</v> <!-- select this --...
EDIT: The Example now contains all tags that are in my main document
Hello everyone! I just had a quick question about XSLT. I have a large xml file with many <DIMENSION_Id> nodes nested inside each other. In each <DIMENSION_Id> node there are two SYN tags: <SYN>String</SYN><SYN>Integer</SYN> What I am trying to do is take the furthest...
I am very new to Android and ksoap2 development. I have been searching on the forums for an answer to my error and still have not found a fix. Hopefully someone will be able to figure how to fix the error.
I am calling a Webservice with 10 parameters in my sample android app using the Ksoap2-Android-assembly-2.4 jar library.
The erro...
Hi,
I have a XML document which is received as a character stream. I wish to parse this using libxml2. Well one way would be to save it as an .xml and then open it using one of the libxml2 API's. Is there a way i can directly build a tree on this stream and parse it ?
Env is purely c++/c.
Cheers!
...
Hi
I am working on a case where I need to clean invalid XML characters I receive from a SharePoint web service.
I know fixing the source is the right thing to do - however this issue has been reported back in 2008, and I have yet to find that Microsoft has released a patch for it.
For now, I call the Web Service using the Provider inte...
I am interfacing with an existing API (from Garmin) that is very poorly documented and I need some help. The function I am calling is expecting a parameter that I don't know how to initialize properly.
The code in the API looks like this, where activities is the parameter I supply:
if (activities != null && activities.length > 0) {
...
Hello, please I was wondering if someone can please help as its quite urgent. I need to convert the structue of an xml file to another xml structure so that I can bind it to a asp.net treeview control (i'm a c# developer). I noticed the asp.net treeview control accepts a transform file or xpath expression and am wondering if some one kno...
Hiya All,
As allways I'm abit over my head but this time I'm really pushing myself. hehe.
I dont have any code yet for my new little project because I'm not really sure where to start.
Here is the background info of what I need to do.
What I'm trying to do is a "status indicator" for one of my (adult) wecam advertising sites.
The perfo...
I want to parse a simple XML Doc and create simple syntax coloring...
<parent>
<child>Value</child>
<child>
<grandchild>Value2</grandchild>
</child>
</parent>
So all the < and > are blue
The node names are red
and the value is black.
I was wondering if anyone had a good regex do this? Right now I am using a forloop and...
For instance, what XPath would return "text one", "text two", and "text three"?
<root>
<item>
<richtext>
<par>
<break />
text one
<break />
text two
<break />
text three
</par>
</richtext>
</item>
</root>
The number of <break/> tags varies.
...
Hello all,
I created a xsd and I created Java objects using Castor. Then I imported this in my Android project and tried to build an XML from the object, using the marshal method.
Marshaller.marshal(v, writer);
I received some wired exception trouble processing "javax/xml/parsers/DocumentBuilder.class":...
So my question is Can I use ...