xml

Jquery random quotes with xml ?

Can jquery interact with XML like Flash do. I want to make random text rotate with jquery and XML(text will be in XML file) look at this http://healmyptsd.com/ left testimonials section in left under navigation bar. right now there are 3 images. I want to use selectable text and images in background for every testimonials. and the matt...

Check for update (compare remote XML file with a local variable)

I have an InnoSetup for my C# application. And I'd like the setup to check for updates before installing (to make sure the user always gets the latest version). To do this, I need a bit of C++ code to parse an xml file from a remote location (which contains a version string) and have a method return it. From InnoSetup I can call the DLL...

DTD ATTLIST Range of Numbers

Hi is it possible to only allow a range of numbers in an ATTLIST? I know you can have an enumeration of a set as follows: But it is possible to have 0 - 100, without having to type all 100 numbers? Thank you. ...

XSD : model properties (name/value pairs)

I have a XML defining properties like : <properties> <property name="play_sound" value="true" /> <property name="duration" value="30" /> </properties> Is it possible, with an XML schema, specify conditions such as "if the property name is 'duration' then the value must be an integer". I think it is not possible so, what is th...

dom4j converting text to special characters

I'm using dom4j to parse my xml. Let's say I have something like this: <?xml version="1.0" encoding="UTF-8"?> <foo> <bar>&#402;</bar> </foo> When looking at the value of the "bar" node, it gives me back the special character as represented by "& #402;" Is there a way to prevent this and just read in the actual bit of text? ...

Why does my XPathNavigator always return the Root?

I suspect I am missing something basic but vital but because of it my XPath navigator is always returning the root. I have some XML data like so: <?xml version="1.0" encoding="utf-8" ?> <language> <header> <about>about</about> <faqs>faqs</faqs> <feedback>feedback</feedback> <submitblog>submit a blog</submitblog> <...

jQuery and XML

Hi, I have an AJAX query which makes a request and gets some XML back. The XML contains data for a table and a chart. The table works fine but the chart (for FusionCharts) is proving to be problematic. I have it working in FireFox by using // For some reason the .text() is not working on this, one solution is to write it to the ...

how to serialise exception object as xml string c#

I want something like try { //code here } catch (Exception ex) { stringXML = Exception.toXML(); } so that the value of stringXML would be <exception><message></message><innerException></innerException></exception> For example... How is this possible? ...

Output in XML using PHP

header('content-type: application/xml'); echo '<'.'?xml version="1.0"?'.'>'; echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;'; echo '<root>'; $hierarchy=$tree->getArray(); recursiveBuild($hierarchy[0]); echo '</root>'; I am printing this as output to get...

Replace SQL statements in XML with query results

Hey everyone, I have functions in place that will convert the results of sql queries into XML. However, I now want to be able to, using PHP, read in an XML document (that has nested SQL statements), execute those statements, and essentially replace the sql statement with the results. (Just a note, using PostgreSQL) For example: <cus...

PHP - Delete XML Element

I need to delete elements of an XML file using PHP. It will be done via ajax and I need to find the XML element via an attribute. This is my XML file <?xml version="1.0" encoding="utf-8"?> <messages> <message time="1248083538"> <name>Ben</name> <email>Ben's Email</email> <msg>Bens message</msg> </message> <me...

Force WCF to serialize unused class

I appear to be having an issue with the following snippet of code in that, when I come to specifying what the Item is (eg CashInHand), the actual type CashInHandPayment is not available because it hasn't been carried across when I generate the proxy class (most likely because it doesn't read in XmlElementAttributes). Is there any way to...

Fogbugz API - formatting data submitted into the sEvent field

Hi, I'm using the Fogbugz API (v6.0) to submit new cases from some error reporting code. I can't find the correct syntax to put line breaks in the case description field. sample api call: http://fogbugz.somesite.com/api.asp?token=b99n6u07v8qrsoqq4710ukogff5u18&amp;cmd=new&amp;sTitle=www.somesite.com|/ajaxRTF.asp|Permission denied&ixP...

self-closing tags with XMLEventWriter

So the question is pretty much as stated in the title. I am doing some xml work and using XMLEventWriter. The big issue I'm having is that I need to create some self closing tags The problem is that I haven't figured out a way to do this with the eventWriter. I have tried everything I can think of using XMLEventFactory but nothi...

Generate XML comments with SQL FOR XML statement

Background: I am generating pieces of a much larger XML document (HL7 CDA documents) using SQL FOR XML queries. Following convention, we need to include section comments before this XML node so that when the nodes are reassembled into the larger document, they are easier to read. Here is a sample of the expected output: <!-- ********...

Loading a Blogger page in an XML object in ActionScript results in missing tags

Whenever I load any blogger page through an XML object in actionscript 2 almost all of the contents of the page magically disappear. I would assume that since the pages are in xhtml that this should work. Here is what I get if I try to load Steve Yegge's blog: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/T...

Eclipse: Show XQDT output in Eclipse's graphical XML editor?

I'm using the XQDT (XQuery Development Tools) plugin for Eclipse, and I'd like to view query results in Eclipse's graphical XML editor rather than in the console. Does anyone know of a way to redirect output in this way? ...

Parallelize A Batch Application

I am currently working on an application that parses huge XML files. For each file, there will be different processes but all of them will be parsed into a single object model. Currently, the objects parsed from each XML file will go into a single collection. This collection is also used during parsing, e.g. if a similar object alread...

Xml Serialization vs. "True" and "False"

I'm having an issue with deserializing an XML file with boolean values. The source XML files I'm deserializing were created from a VB6 app, where all boolean values are capitalized ("True", "False"). When I try to deserialize the XML, I'm getting a System.FormatException: The string 'False' is not a valid Boolean value. Is there a w...

XQuery: Return value of an element rather the element itself

I have an XML document that contains the following ... <foo>abc</foo> ... If I evaluate return $xml//foo I get back <foo>abc</foo> Is there any way to get just abc instead? ...