xml

XML processing in JRuby without FFI?

What's the best available library right now? I don't really care about features much, as long as it provides something SAX-like at reasonable performance levels (not REXML). ...

Encrypt WHOLE xml file - C#

How to encrypt WHOLE an xml file using C#? ...

Reading an XML in C#

Hello, I'm using System.Xml to read a xml file in C#. First I open the file (locally)... and use foreach to get the values, like this: XmlNodeList titles = xmlDoc.GetElementsByTagName("title"); foreach (XmlNode title in titles) { rowNews = new ListViewItem(); rowNews.Text = (title.ChildNodes[0].Value); listView1.Items.Add(rowNews); } ...

Need efficient data mappings example for a ListView drill down in Android/Java

I'm pretty new to java programming and am looking to do basic data mappings. I have a ListView object with a simple data array setup like this: setListAdapter(new ArrayAdapter<String>(this, R.layout.my_list_xml, MY_DATA)); What I want to happen is when you click an item it goes to it's subcategory. I'm not worried about switching th...

How to retrieve children of an xml data?

Hello, I have some xml data in the format below - <xyz:reqResponse xmlns:xyz="http://www.test.com/xyz/" xmlns:akt="http://www.exmple.com/akt/"&gt; <xyz:version>1.2</xyz:version> <xyz:totalRecords>659</xyz:totalRecords> <xyz:records> <xyz:record> <doc> <str name="icon_url">http://www.icons.net/ico...

Converting MySQL TEXT field with breaklines to XML by Perl script returns a malformed notation

I have a table in MySQL that has one field defined as TEXT. The information is fed to the database by a webform using a textarea. I'm using the following script to generate an XML with the information of the table: #!/usr/bin/perl use strict; use DBI; use XML::Generator::DBI; use XML::Handler::YAWriter; my $dbh = DBI->connect ("DBI:...

Select using xquery with nested node

I try to return a set of result from an xml document using xquery but I didn't figure out. Here are my queries: DECLARE @Data xml SET @Data='<main> <person> <name>Daniel</name> <cars> <model>y75</model> <model>b25</model> </cars> </person> <person> <name>Marc</name> <cars> <model>h20</model> </cars> </person> <...

XSD creation problem

Hi All, I have been assigned to create a XSD schema for a proposed XML. i know what tables will be involved and what will be required fields which we always going to expect in the XML as well as optional. I am very new to XSD and don't know where to and how to start.Can any one suggest me how to proceed so that i can start exploring som...

View XML data as a table

Is there a way I can use Visual Studio to view my XML data in a tabular structure by applying the appropriate XSD to it? Are there any other tools I can easily use for this purpose? PS: I need this for a one time use. ...

Browser specific AJAX call error

I have a web page that makes an AJAX call to the server to update some database tables. In Internet Explorer, everything goes in without a problem. But when you use the page in Firefox and make the AJAX call, the call goes through and updates the database tables, but instead of going into the success portion of the call, it goes to the e...

XSL: Removing xml tags but keeping their contents

I recently changed a couple of my .xml files from docbook to dita. The conversion went ok, but there are some unwanted artifacts. The one I'm stumped on is that .dita does not recongnize the <para> tag from docbook, and replaces it with <p>. Which you'd think would be fine, but this causes the XML to show items in and ordered list as ...

Confused about jetty-env.xml

I have a webapp that uses JNDI to locate a datasource and a transaction manager. I see from the Jetty documentation how to do this via the jetty-env.xml file. However it mentions that this file should be put into the WEB-INF directory. Why would they suggest that JNDI resources be configured in a configuration file that is located i...

ListAdapter / Cursor, Android. Custom Layout problem

Hey everybody! I'm experimenting with the Android platform, and I'm beginning to love it, but right now I'm stuck, at this cursor/list adapter problem-thing. The thing is, that I request a function, returning a data object, with several properties I'd like to map to different TextView's. My list_item.xml <?xml version="1.0" encoding="...

How to create html list from flat xml file using XSLT.

Okay guys I think this is a tricky one... I am looking for a clean way to do the following using XSLT: Convert this source: <para>blah blah</para> <list>num1</list> <list>num2</list> <list>num3</list> <para>blah blah</para> <list>num1</list> <list>num2</list> <para>blah blah blah blah blah</para> To this output: <p>blah blah</p> <o...

Restful JSON API only or XML API too?

I'm going to create a restful api in Json to provide data to my customers. I really prefer json over xml. All my coding is done in json. I wonder, is it sufficient to just provide json api and tell the customers through the homepage that json rocks over xml and we only use json, or are there a lot of customers that just prefer xml and ...

Human- and computer-readable hierarchical data format with inheritance across files

I'm looking for a data format for text files with hierarchical information. These files will be created primarily by human input (rather than generated by programs), but will be read primarily by programs. The main requirements are: Very simple and uncluttered syntax. (Example: levels of hierarchy defined by tabs would work fine.) So s...

How to extract titles, images and text from any kind of feed ?

Possible Duplicate: Best way to parse RSS/Atom feeds with PHP I want to extract the titles, images and text from any kind of Feed Rss ( feedburner, xml, etc ). How can I do this in PHP ? For example, I want to extract the stuff above from this feed: http://feeds.mashable.com/Mashable ...

Combining XSL documents + DITA: Xref Vs. Related Links

I have used an XSL to convert a docbook document into dita. The conversion was successful, bu there are unwanted artifacts which remain. I've gotten rid of a few of them, but I have saved these changes in another XSL which is run after the conversion. My question is: Is it possible to combine this into a single XSL? when I've tried ...

Android SAX parser

I am trying to implement a robust RSS/Atom reader for android, and since Xerces won't compile I am struggling to find an alternative. I am using org.xmlpull.v1.sax2.Driver(), however this just wraps a DOM parser with SAX callbacks. Is there anything comparable to Xerces on Android? ...

How can I add a cdata block using GDataXMLNode ?

I've tried this: GDataXMLElement * body = [GDataXMLNode elementWithName:@"body"]; [body addChild:[GDataXMLNode elementWithName:@"request" stringValue:@"<![CDATA[ <hello> ]]>"]]; NSLog(@"%@",[body XMLString]); And it outputs: <body><request>&lt;![CDATA[&lt;hello&gt; ]]&gt;</request></body`> But want it to be like this: <body><reque...