xml

Load and modify xml file in Android

I have an xml file which will be in either assets or res folder which i need to modify by adding some values and then i need to convert the xml into a string to be sent as part of a soap request. What would be the easiest way to achieve this? ...

SoapUI : is it possible to autogenerate the value from an element in a SOAP message ?

With SoapUI it's possible to send Soap XML message to a WCF service. I've the following SOAP message: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:my="http://myserviceprovider"&gt; <soap:Header/> <soap:Body> <my:ProcessOrder> <my:Orders> <my:Order> <my:id>rando...

Getting XML in JAX-RS service

Hello! How can I get XML and/or URL (String) in JAX-RS service? For example in GET method URL @GET @Produces("application/xml; charset=UTF-8") public JaxrsPriceWrapper getPrice(@QueryParam("firstId"), @QueryParam("materialId"),...) { //here I would like to get whole URL } and in POST method XML @POST public JaxrsOrderWrapper in...

java types in org.bson.BSONObject

Hi all, I'm currently learning the BSON java library for mongodb and I'm trying to transform a org.bson.BSONObject into XML in order to transform it with a XSLT stylesheet. What kind of java types can I find as values in a BSONObject from a Mongodb ? Of course there will be: BSONObject (internal doc) java.lang.String ??? what are ...

JAXB - Can XJC compile appinfo into the class structure?

I have a schema which is read by a few different applications for form generation; one of them uses JAXB/XJC to compile its class structure. The schema contains appinfo information for friendly names of fields, eg: <xs:element name="HomeAddress" type="xs:string"> <xs:annotation> <xs:appinfo>Home address</xs:appinfo> </xs:annotat...

creating xml with php and 'if changed' option

Hi all, I am creating an address book xml feed from a MySQL database, everything is working fine, but I have a section tag which gets the first letter of the surname and pops it in that tag. I only want this to display if it has changed, but for some reason my brain isn't working this morning! Current code: <?php echo "<?xml version=...

Jgrid Problem Generating XML

Hi, i am using Jgrid. i am injecting the data to the Grid using Xml as we most of us do. i want the batch update to database, my requirement that when i click on the "Save Change" it generate the Xml of current(updated) grid data. So, how can i generate the Xml of Jgrid data. please help. here is the code. <!DOCTYPE html PUBLIC "-/...

Transforming lots of XMLs (File objects) into a single String with all the files' contents

What is the most effective (performance-wise) and clean way to perform the transformation of taking up to 500 XML files, sized up to 50 Mb each and making a single String out of them. All files are XML and need to keep the formatting etc. I'm currently doing the reading using XMLEventReader , and then XMLEventWriter,reading one event at...

Why am I getting an "Out of memory" error with Perl's XML::Simple?

Edited:: Hi All, I have a XML file like this, <message> <c1> <rrcConnectionSetupComplete> <rrc-TransactionIdentifier>2</rrc-TransactionIdentifier> <criticalExtensions> <c1> <rrcConnectionSetupComplete-r8> ...

Error when using adrotator to display ads

I had AdRotator control to display some Banners in my site but I got an error (AdvertisementFile not found). I checked my code and found that everything was as it should be. Please any one help me. images/Ad_1.jpg http://toshiba.elarabygroup.com/Category.aspx?cid=25 80 images/Ad_2.jpg http...

Ignore few children for comparison when comparing xml documents with XMLUnit

Hi, Is it possible to ignore few children in elements when comparing xml documents with xmlunit. i want to ignore any empty text nodes in the element when comparing them. Best Regards, Keshav ...

How to convert an XML node to a C++ Structure?

Hi, I am new in programming and I would like to know if it is possible to convert an XML node to a C++ Structure. For instance I have a file with the following XML: <?xml version="1.0" encoding="utf-8"?> <StrucDescription> <StrucName> <unStrucNameMember1 type="uint16">0</unStrucNameMember1> <unStrucNameMember2 type="uint8">0</...

Is there a LIKE Clause for querying XML in SQL

I'm using SQL Server 2005 and am wondering if there is any way to do a LIKE clause in my xml searches. Here's a sample query: SELECT Id, CaseNumber, XmlTest FROM UploadReport WHERE CASE WHEN @lastName != '' AND XmlTest.exist('(/CodeFiveReport/Parties/Party/Name/LastN...

Paging an XML file with PHP

I need to page an XML dataset in PHP. The website I'm running is not high-volume so an implementation that would query the whole XML serialized file for each page is ok, but I'd be interested in hearing also approaches that do it right from the start (maybe slicing the file in many smaller files). What are some approaches to do this i...

PreferenceScreen - <intent .../> - Exception - FLAG_ACTIVITY_NEW_TASK

Hi, I am new at android developing. The project is about implementing an AbstractAccountAuthenticator with an AbstractThreadedSyncAdapter to sync certain data on a server with a content provider. I made everything and both adding accounts and syncing is running without any problems. Now I've tried to add a Preference-Screen just like...

How to chain/nest XSL Transforms in .NET

Context: .NET Framework 3.5 I realize how I can perform a single XML transformation using XSLT, but didn't find any good examples on chaining XML transformations. Input: - XML document as XPathDocument. - File paths to multiple XSL files. Expected output: - preferably XPathDocument/IXPathNavigable, representing the XML with all transf...

XML Parsed data into a Custom View with UILabel instead of UITableView

Hello future friends who is gonna help me big time on this project, I have these Books parsed from XML file (adopted from this post I found). First view (RootViewController) has a list of book titles in a UITable. When user clicks on one of the books, instead of viewing the books detail (BooksDetailViewController) in a second UITable, I...

Interface for XML editor

http://www.youtube.com/watch?v=e1qG6z6BbYQ at 1:22, the way he edits the XML for resources is totally different from mine. Mine is only coding and his is more visual. Does he use a custom plugin? ...

Sending and receiving XML, to and from server using Cocoa

I have some XML data that I want to transmit to a web server and the response is also in XML. I am trying to use Cocoa to parse the XML. I have followed this document to create the XML and transmit it, but the document doesn't explain very well how you can receive the XML response from the server. I haven't been able to find any good e...

How to bind xml to bean

In my application i use some API via HTTP and it returns responces as xml. I want automaticaly bind data from xml to beans. For example bind following xml: <xml> <userid>123456</userid> <uuid>123456</uuid> </xml> to this bean (maybe with help of annotations) class APIResponce implement Serializable{ private Integer userid; p...