xml

Consuming XML directly in AXIS2

Hi, I have a scenario where I get XML from client to server which exposes REST web services using AXIS2. I want to directly store this XML to DB (without converting into Java object), with some more information like user to whom XML belongs etc. I might store XML as We also have hibernate in the same application for ORM. Now my questi...

How to save a neatly formatted XML file using Simple XML?

What's the "trick" to save an XML file that visually would result neatly formatted? such as: <xml> <item>foo</item> </xml> and not: <xml><item>foo</item></xml> ...

A way to split a huge XML file into smaller xml files with XSL

Hi, I get a huge XML file containing a list of TV broadcasts. And I have to split it up into small files containing all broadcasts for one day only. I managed to to that but have two problems with the xml header and a node being there multiple times. The structure of the XML is the following: <?xml version="1.0" encoding="UTF-8"?> <br...

Delphi TADOQuery loadFromFile error: "The character '<' cannot be used in an attribute value"

I have a Delphi 2009 application that runs a query over a database using a TADOQuery component. When the query has returned data, I call the TADOQuery's saveToFile procedure, specifying "pfXML" as the format parameter, which obviously saves the data to an XML document. This works fine. To view the data, I have a screen that contains a v...

Java Object to XML serialization using writeObject

Is there any open source Object to XML serializer in Java that uses writeObject method on the object to serialize similar to NSXMLOutputStream in WebObjects? ...

Actionscript 2.0 element.text always outputs "00"

Hi everybody, I'm fighting against a strange behaviour with my actionscript! After setting the four integer variables from the MovieTimer sprite (hour, minute, second, mili-sec) and concate them i got always double zero: 00 stop (); delete this.onEnterFrame; var str1; var str2; var mili; var second; var minut...

xml changing the value of an attribute

I have the following text in xml file: <Config Builder="LP Wizard"> <Libraries> <Library Name="XCAMSource"/> </Libraries> <InputFormats> <XCAM Format="XCAM" LibraryDirectory="C:\XCAM"/> </InputFormats> <OutputFormats> <Pads Version="PADS 5.0" ExportAscii="false" LibraryGenerate="true" Extende...

what is the best free editor for xslt and mybe xsl:fo and xml?

Hello im looking for free IDE to work with xslt and xml's and even xsl:fo is there any out there? ( i really didn't found any free tool ..) ...

Why do I need to count the number of XmlNodes before iterating through and deleting some of them?

I believe I have found a weird bug as follow: I want to delete the first two nodes in an XmlNodeList. I know that there may be other ways of doing this (there surely are) but it is the reason why one of the code segments works and one doesn't (the difference being the Count line) that I am interested in. var strXml = @"<food><fruit ...

PHP: xml_parse replaces entities and "?" character

How can I describe something I can't quite put my finger on? I have a module for RSS reading "magpierss" it uses xml_parse() and after extensive troubleshooting all I can come up with is that it removes certain entities like "?" character. I haven't written this module myself but I have traced the code until the part uses xml_parse() an...

why can i import this type from a xsd schema?

In the schema below, the line <xs:element type="cmn:AddressType" name="ResidentialAddress" minOccurs="1" maxOccurs="1" /> gives an error Type 'http://company.com/Common:AddressType' is not declared. Does anyone know why? It shows in the Visual Studio 2008 editor, and also if I try validate an XML file with XDocument. Schema Student.xsd...

Please Explain SOAP To Me

What is the difference between XML and SOAP? I've been reading some introductory articles about SOAP but I am very confused. This is the first time I am reading about SOAP so maybe that's natural. Could somebody please explain to me what SOAP is and what it is used for? Maybe give me some examples of its usage? Thank you in advance. ...

XSD Schema for XML with multiple structures

I am attempting to write an XML Schema to cover a number of XML conditions which I may encounter. I have the same root element (serviceRequest) with different child elements. I was trying to use the xs:extension element to define multiple versions, but it is complaining about unexpected element orderInclusionCriteria etc. Am I going a...

How can I match XML tags and attributes with a regular expression in Perl?

What I need is something like this: /<[\w\d]+ ([\w\d]+\=[w\d])+\/>/ Something that would match several attribute key/value pairs. Is that possible? ...

WCF - Viewing xml request/response to a secure webservice

I have a WCF service application and in this app I am doing calls to a third party web service over a secure connection. I have been trying to view the request response streams using fiddler but I have given up on it after trying more than half day applying all I could find over the internet. It has a problem with certificates eventhoug...

XML, pass values to timer, AS3

My timer has three variables that I can trace to the output window, but don't know how to pass them to the timer. How to I pass the XML values to my timer? Purpose I want to test with an XML document, before I try connecting it to an XML socket. myXML <?xml version="1.0" encoding="utf-8"?> <SESSION> <TIMER TITLE="speed">100</TIMER> <...

iphone xml parser error

Hello Friends. I'm trying to implement and parsing xml document using web service in my iphone application: Here is my Request (HTTP GET): http://api.stlouisfed.org/fred/category?category_id=125&amp;api_key=78da607fc8224651eca5653e65a4be5e Response will be: <?xml version="1.0" encoding="utf-8" ?> <categories> <category id="125" nam...

Parsing xml with jQuery in IE6/7 issue

Hi, I have some problem with parsing XML in Ie6/7(original 7 no compatible mode). On Another normal browsers it works. Jquery code: $.ajax({ type: "GET", url: "test.xml", dataType: "html", success: function(xml) { $(xml).find('quoteresult').each(function(){ var bid = $(this)...

How to save XML file before update?

Right so I have a simple app that consists of a calendar a Set Event button and list box that populates using a DataTemplate in WPF. When I build the app the Events.xml file is like this: <?xml version="1.0" encoding="utf-8" ?> <events> </events> I add events to xml through code. Final structure of the xml file is the followi...

Indesign and XML - how to auto flow into multiple pages with differing styles?

Hi guys, I've got a bit of a problem at the moment. I'm trying to work with indesign (cs3) and xml. Basically i have a template which is has 1 master dps, both pages have the same data (fields 1-5) but one is left aligned, one right - hence mildly different paragraph styles. What i want to be able to do is import xml and have indesign ...