xml

lookup nodes with xpath in java

Can anybody suggest how can I solve this, there is XML document that I'm trying to append. I'm looking up nodes with xpath, the things is the software which generates this XML sometimes screws it up as following : <element name="Element ">Element value</element> So when I'm looking the node up with xpath using //element[@name="Element...

How to convert default mysql modtimes into UTC date time using xslt

I need to convert default mysql modtimes into UTC formated datetimes using xslt. I have an xml document that contains dates that originated as mysql modtimes in the format: 2010-06-30 15:20:43.0 They are now in an xml document within an element "datestamp" 2010-03-16 13:52:56.0 In order to be published via an oai-pmh feed they need to...

How to convert JSON to XML? (preferably with Yahoo Pipes or Ruby).

There is plenty of information on XML to JSON conversion... But I would like to convert a JSON result into XML. For example the iTunes Search API only provides output in the JSON format. http://itunes.apple.com/WebObjects/MZStoreServices.woa/ws/wsSearch?term=jack+johnson&amp;country=US&amp;media=music&amp;entity=musicArtist&amp;limit=6...

Java + Mysql UTF8 Problem

Hi, as the title said, I have a problem between java and mysql The mysql DB, tables, and columns are utf8_unicode_ci. I have an application that took some input from an xml, then compose the query... public String [] saveField(String xmltag, String lang){ NodeList nodo = this.doc.getElementsByTagName(xmltag); String [] pos = ...

How to create and use XML namespace?

I want a page like this: <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:m="mine.xsd"> <m:dialog m:title="Hello">Hi there!</m:dialog> </html> How can I write "mine.xsd"? Thanks! ...

Java converting XML to Java objects

Whats the best way to convert XML into Java objects? I dont want a like for like representation but would like to pull out certain data from the XML and populate a java object. I had a look for XStream but didnt really like the whole move down move up type stuff...would prefer a DOM like object when writing converters... ...

Gridview Tutorial problems

Hey guys thanks for reading! I'm trying to get into android development and I'm going through the tutorials, however I'm really stuck on the HelloGridView tutorial and I'm surrounded by apple developers, so have nobody with any android experience to ask! I've attempted to do the HelloGridView tutorial and I get 17 Errors but cant see w...

Android Word-Wrap EditText text

I have been trying to get my EditText box to word wrap, but can't seem to do it. I have deal with much more complicated issues while developing Android applications, and this seems like it should be a straight-forward process. However, the issue remains, and I have a large text box that is only allowing me to enter text on one line, co...

Xerces-C++ DOM node line/column number location

Hi, I'm writing a custom XML validator using Xerces-C++. My current approach loads the document into a DOM, and then checks are performed on it. What I need is a way to access the line/column number of a node in the DOM. I've been reading the API docs and googling, but I'm coming up short. Is it possible to somehow retrieve this kind of...

How to see progress when parsing large XML file with XML::Parser?

I'm using following code to parse rather large xml file (> 50GB): use XML::Parser; my $p = new XML::Parser( 'Handlers' => { 'Start' => \&handle_start, 'End' => \&handle_end, 'Char' => \&handle_char, } ); $p->parsefile( 'source.xml' ); ... sub handle_start { ... } The problem is tha...

Static method for XMLLoader class... how to return XML data after Event.COMPLETE function?

I am attempting to build a generic XMLLoader class with a static LOAD method, with the intent to use it as follows... private var _data:XML = XMLLoader.LOAD("path/to/xml_file.xml"); Then I could use it in any client and go-to-town with e4x. The general problem I am having is with the URLLoader's COMPLETE event, which necessarily cal...

Groovy xml parse then rebuild

With more than a little help from daviderossi.blogspot.com I have managed to get some code working to replace an xml value with another def fm_xml = '''<?xml version="1.0" encoding="UTF-8"?> <MAlong> <Enquiry.ID>SC11147</Enquiry.ID> <student.name_middle></student.name_middle> <student.name_known></student.name_known> <student.name_previ...

Sum of culture specific values in xslt.

Hi, I have an xml like <MainNode> <Data SubjectID="19233"> <SubNode CS="100,1" > <AB V="PSDF"/> </SubNode> </Data> <Data SubjectID="19234"> <SubNode CS="111,1"> <AB V="PSDF" /> </SubNode> </Data> </MainNode> When i try to sum the value of attribute "@CS" i am getting "NaN" as result. Can anyone help me to solve...

problem Regarding Treeview Control for windows form in c#

how to save tree view content into xml file. i want to know how to edit,delete,insert treeview content at run time??? ...

Groovy xml edit value causes duplicate

With more than a little help from daviderossi.blogspot.com I have managed to get some code working to replace an xml value with another This give me the following output which both edits the value at the 'ix' position BUT also adds a second copy at the end. If I search for it with LastIndexOf and delete it then it deletes the first occu...

what is the URL equivalent of an absolute path in non-windows system?

Hi, I am getting following exception while running BIRT from a Linux OS. Caused by: org.eclipse.datatools.connectivity.oda.OdaException: no protocol: /home/lsingh/reporting/tmp/execution1279514184559/TDReport.xml where "/home/lsingh/reporting/tmp/execution1279514184559/TDReport.xml" is my XML data file. When i looked into the code of...

How create makefile in windows

How create makefile doing folow - select from mysql in xml forman, transformation with xslt. ...

xml counting elements in a list does not work in firefox, can someone help?

Hi, I am writing some CSS to customise the display of an XML document. Basically I want to customise the display of child elements, and render them similar to HTML OL/UL/LI elements. My XML is structured like this: <?xml version="1.0"?> <?xml-stylesheet type="text/css" href="style.css"?> <transcription> <turn> <spea...

Is there anyway to use the Imageshack API without PHP?

If I use the ImageShack API just in a form like this: <form method="post" enctype="multipart/form-data" action="http://www.imageshack.us/upload_api.php"&gt; <p><input type="file" name="fileupload"></p> <p><input type="text" name="key" value="Your_Developer_Key"></p> <p><input type="submit" value="Go"></p> </form> the browser gets take...

Select the elements, of the first node of XML (linq,C#)

Hello! My question is often asked at several places, but I have an xml, without attributes, so I can't use those methods. My XML's structure is this: <offers> <offer> <seller> <citizen> <name>A name</name> <id>An ID</id> </citizen> </seller> <amount>Number</amount> <exchange-rate>Rate</excha...