I need XPath code to take child elements (one or more) and put them on a single line, separated by commas.
So if I have the following XML:
<Authors>
<Author>Bob Smith</Author>
<Author>Mary Jones</Author>
<Author>Sam Doe</Author>
</Authors>
I want the following output:
Bob Smith, Mary Jones, Sam Doe
It needs to be smart enou...
Hi,
I have some xml data and I am trying to keyword search data. For example, if I search "some" for the following data it returns me the <id> and <title>.
<resource>
<id>101</id>
<title>Test Environment</title>
<description><b>Some</b> description. </description>
<type>classroom</type>
</resource>
<resource>
<id>102</id>
...
Hi,
I am new to XML and have been trying some simple examples and they work fine.
I want to do something like the following, but I am not able to figure out how to go about doing this.
I have a HTML web page, where the user types in some data in an input field. I want to take that data, parse it to create an XML string, and the app...
I have a few simple questions, because I got confused reading all difference responses.
1) If I have an xml with prolog: <?xml version="1.0" encoding="utf-8" ?> and I'm going to unmarshall it with Java (for example: JaXB). I suppose, that I can't put CROSS OF LORRAINE (http://www.fileformat.info/info/unicode/char/2628/index.htm) inside...
I'm having issues trying to deserializing my xml string that was from a dataset..
Here is the XML layout..
<DataSet>
<User>
<UserName>Test</UserName>
<Email>[email protected]</Email>
<Details>
<ID>1</ID>
<Name>TestDetails</Name>
<Value>1</Value>
</Details>
<Details>
<ID>2</ID>
<Name>Testi...
Hi there,
I started two days ago with android, gone through the hello android stuff and also started to read the Hello Android book, which is great.
PROBLEM:
I use in my app - VERY EASY APP- the XML output. So basically the main activity just tells the android to show the XML layout of main.
But what if I have in the activity - code ...
Whats wrong with my code?
XmlTextReader textReader = new XmlTextReader(@"D:\xml_file.xml");
textReader.Read();
// If the node has value
while (textReader.Read())
{
// Move to fist element
textReader.MoveToElement();
Console.WriteLine("XmlTextReader Properties...
A bit on my requirements, at the moment i'm passing on a search string from a Cocoa app to a PHP script which queries the database, and then generates an XML output for Cocoa again.
The only bit I am having issues with now is generating the XML output from the db query.
At the moment, i'm trying to loop through the results and output t...
Currently, I'm using LIBXML::SAXParser::Callbacks to parse a large XML file containing data 140,000 products. I'm using a task to import the data for these products into my rails app.
My last import took just under 10 hours to complete:
rake asi:import_products --trace 26815.23s user 1393.03s system 80% cpu 9:47:34.09 total
The pro...
I'm doing a cURL POST and get the error response back, parse it into an array but having issues with xpath now.
// XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<errors xmlns="http://host/project">
<error code="30" description="[] is not a valid email address."/>
<error code="12" description="id[] does not exist....
Edit: Sorry guys, realised I have no idea when it comes to integrating Webservices in Java. Was hoping someone could point me in the right direction.
Original question: Hey everyone, I was wondering if you guys could point me in the right direction for this. I am required to find out how to inject data into an XML being created. I am u...
Im trying to get all of my posts in a delicious account to an MySql DB.
Since delicious exports xml I think it wont be too complicated, but being new
to it I cant really make sense of the api...
I believe I have to query it as so:
https://api.del.icio.us/v1/posts/all?
But one catch is that im using an yahoo id for that account whic...
Hi,
I am exploring android and developement and I found one problem.
My app UI is defined in main.xml
I have 2 texts and 2 buttons defined - easy app.
I read that I may be able to change TEXT in the ACTIVITY using the setText() method.
And thats the problem - how do I POINT the setText() Method? How do I tell it to change a specifie...
Hi
I have simple xsql
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="zad1.xsl" ?>
<page xmlns:xsql="urn:oracle-xsql" connection="java:comp/env/jdbc/mondialDS">
<xsql:query max-rows="-1" null-indicator="no" tag-case="lower" rowset-element="continents">
select name as continent
from ...
I am working on a WCF rest interface using json. I have wrapped the service in a windows service to host the service but I am now having trouble getting the service to be callable. I am not sure exactly what is wrong.
The basic idea is that I want to host the service on a remote server so I want the service mapped to port localhost:76...
Is there a way to display "Test" value as bold just like the implementation of newline?
<testElement>Test 
 Test</testElement>
The output of the above line when you display it is:
TEST
TEST
I want to know what/how to make the second line as bold just line by using expressions.
Thank you
...
Newcomer to Spring here, so pardon me if this is a stupid question.
I have a relatively small Java library that implements a few dozen beans (no database or GUI). I have created a Spring Bean configuration file that other Java projects use to inject my beans into their stuff.
I am now for the first time trying to use Spring Test to inj...
Have you ever had one of those days when you've dug a hole but your so deep in now that the only option is to keep on digging and see where you come out?
I thought just for giggles in the latest component I'm writing to use LINQ to XML because it was about time I saw what all the hooplah was about.
The Problem: I am generating an XML ...
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x=...
Hello,
i have the following xslt sheet:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:variable name="nhits" select="Answer[@nhits]"></xsl:variable>
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">
<div>
<xsl:call-template nam...