xml

how can I define an xsd file that allows unknown (wildcard) elements?

I'm receiving an xml message with unknown variable name elements... that is, they are not predefined... I only know there can be 0 or more of those elements, allong with some other that are mandatory... for example <root> <service>my service</service> <resource>my resource</resource> <action>update</action> <parameters...

XSLT Grouping Siblings

I am trying to group sibling data in an XML file. Given : <?xml version="1.0" encoding="UTF-8"?> <data> <competition> <timeline>10:00</timeline> <fixture>team a v team b</fixture> <fixture>team c v team d</fixture> <timeline>12:00</timeline> <fixture>team e v team f</fixture> <timeline>16:00</timeline...

How to config QueryCache in ehcache.xml

From my sql log file, I think the QueryCache's physical properties are configured by the element: <defaultCache maxElementsInMemory="0" eternal="false" timeToIdleSeconds="120" timeToLiveSeconds="120" overflowToDisk="false" memoryStoreEvicti...

xml integration - post xml to a url.

please help me i am this question again dont block this question i want to post my xml file to a url from where i will get a reponse xml document in return but i dont know how to do this i want to do this as simple as possible without using curl or any other things just using java script , ajx and php please any one provide a co...

Want to serialize/deserialize object to/from XML - is it a good idea to specify tags as string constrants?

I have a class that I want to have opportunities to serialize/deserialize. It implements interface IXMLConvertable: public interface IXMLConvertable<T> where T: new() { T deserialize(XElement element); void serialize(XElement element); } when T is a type of object to deserialize. The question is whether it`s a good practice or...

Xml serialization library for iPhone Apps

Apple provides the NSArchiver and NSUnachriver for object serialization / deserialization, but this can not handle any custom xml schema. So filling an object structure with the data of any custom xml schema has to be made manually. Since the iPhone developer community is rapidly growing, a lot of newbie programmer are despairing to deal...

emacs: Does HideShow work with xml-mode (sgml-mode)?

I use hideshow.el in my cc-mode buffers to collapse sections of the file I'm not looking at. It would be nice to be able to do that in an XML doc. I use emacs 22.2.1 and the built-in sgml-mode for xml editing. I haven't gotten hideshow to work with the XML. I mean, I turn on the minor mode but the keystrokes have no effect. Ooh, e...

In .net how to find the simple path to a element node

Given: a xmlnode that you got from calling the XmlDocument.GetSingleNode method, where you know that the node is an element, if you want to find the simple path to that element, is there something more straightforward than climbing the tree til you get to the root node and buildling the path as you go? Not that that's hard, I just w...

How to remove XML entity references in Actionscript

I need to remove a bunch of &apos; from a string that I obtained through an XML document. I'm working with Actionscript 2, so Regex is not an option for me. Even though I'm looking for an Actionscript 2 solution, still reply with an Actionscript 3 answer if you have one for anyone else who might need it. ...

Setting a configuration file to an XML file

I have an XML file that contains database settings that may change depending on where it is read. Preferably, I would read those settings from some configuration file. How can this be done? ...

SoapUI getting request parameters in mock service script

This is probably a very easy one for all SoapUI regulars. In a SoapUI mock service response script, how do I extract the value inside the request I'm replying to? Let's say the incoming request has <ns1:foo> <ns3:data> <ns3:CustomerNumber>1234</ns3:CustomerNumber> </ns3:data> </ns1:foo> How do I get the "1234" into a Groovy...

Any good reason for xml pattern "the order of elements is significant" rule?

I don't see why order of elements is significant but not the case for attributes. Can any one provide a sound reason? element addressBook { element card { attribute name { text }, attribute email { text } }* } In XML, the order of attributes is traditionally not significant. RELAX NG follows this tradition. The above patt...

Populating TreeView with XmlDataSource without saved file

I have a .cs file that builds an xml document and stores it in a variable. I want to "inject" it into my <asp:XmlDataSource> so that I do not have to save each xml file (it is different every load). How could I go about this? In my codebehind cs file, I have: XmlDocument x = blahblah XmlDataSource MySource = new XmlDataSource(); MyS...

XSL: Counting Previous Unique Siblings from child nodes

I want to apply a XSL style sheet that counts the previous unique "ROLE" nodes and spits out the following output format of ROLE/@name, PERM/@perfrom and the number of unique ROLE nodes prior to the current node. This is a continuation from this question but with a bit more complexity. I believe the Muenchian method is the best way to i...

Sending raw xml to a web service

I'm trying to invoke a web service which I do not control. The web service expects XML for which I have the xsd. I want to send the raw xml to the web service, i.e. preventing the proxy from XML-encoding whatever I send. How can I do this? ...

Store Relational database as XML

I have to store relational data (text, numbers and pictures) into an XML file. I want to maintain the relationship between data and the tables structure. How do I go about doing that? My Windows Mobile application use Windows Communication Foundation (WCF) to get data. Once it gets the data it stores them into an XML file. The WCF use...

PHP (or other linux friendly) equivalent to .Net System.Xml.Linq

I've been working with the xml.linq classes in .net recently. But may need to use a linux friendly language for an upcoming project. The things I like the most are Xdocument, being able to load from a file or parse from a string XElement, quickly creating a custom structure for page specific data Traversing Children, Parents, Sib...

What is the appropriate output file from T-SQL query of table that has XML as datatype

I created a batch script that calls a T-SQL file and output it to text file. The T-SQL file contains select statement of a table to get the information of column with XML as datatype. The file will then be sent with either contents as body of email or as an attachment. However, when I open the text file, I see a long list of information ...

Disable the reference to entity with XML

I am currently working on program that must read data from a XML stream that some time may contains '&' symbols i.e : <XMLRoot> <Element> <Node> This is a dummy data&more! </Node> </Element> </XMLRoot> When I parse this text I get an error message telling me 'reference to undeclare entity'. Is the...

How do I parse XML from PHP that was sent to the server as text/xml?

I have a client-side script written in jQuery that is sending text/xml data to the server, but I can't figure out how to parse the request since the data is not a query string variable. The jQuery looks like this: jQuery.ajax({ url: "test.php", type: "POST", processData: false, contentType: "text/xml", data: xmlDoc, ...