xml

Is there still a place for XML in the future?

Now that many people seem to be moving towards JSON for web communication I am wondering about why XML should continue to be used. I appreciate that XML has many years on JSON, during which time it has been widely adopted. However, the fact that it is so well-adopted appears to be the one decisive reason why it should continue to be use...

Use a folder of xml files as data source for nhibernate

I'm going to start writing NUnit tests for a few classes in my project. A certain number of these classes use data gathered through nhibernate from a sql server 2008 database. The part of the program I'm about to test is very specific (and complicated). Therefore I have made a folder of xml files. Combined, the xml files could result in...

Trying to create a rotating 'testimonial' ticker with AJAX/JQuery

Hi all! Title says it all. I have an XML file containing different testimonial quotes, including the name of the person they're quoted from. I have a DIV on my page, and I want it to rotate randomly between these XML testimonials - LIVE (without refreshing). If this can be done easily in JQuery, that would be even better. I'm just t...

Using XML Schema for code autocomplete in my XML editor

I have XSD file (for example) http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd and I would like to use it for adding code autocomplete in my xml editor (I prefer Eclipse but any other free editor would be O.K.). Is it possible? And if Yes, how can I do it? ...

XML Namespace Problem

Is there a way to ignore XML namespaces with libxml? My problem is that the namespaces are incrementally named (i.e. ns1:, ns2:, ns3:, ns4:) depending on the records returned. This will error of I don't declare the namespace prior to parsing the data, any ideas would be much appreciated... ...

Tool to check XML+Schema for referential integrity (key,keyref) ?

I am using xs:key and xs:keyref to realize associations between other elements/classes. Oxygen XML does auto-generate XML based on a schema using key/keyref; but with broken referential integrity. Is there an editor or tool available which can check those associations on-the-fly or generate XML from Schema while keeping in mind referen...

Having trouble parsing XML with jQuery

Hi Guys, I'm trying to parse some XML data using jQuery, and as it stands I have extracted the 'ID' attribute of the required nodes and stored them in an array, and now I want to run a loop for each array member and eventually grab more attributes from the notes specific to each ID. The problem currently is that once I get to the 'for'...

How to convert XML to another XML file using xslt.

Hi. I have input XML which I have to reorganize into another XML using XSLT. Here is the example of input file: <?xml version="1.0" encoding="UTF-8"?> <Report asOfDate="2010-03-31 00:00:00" <Record> <FieldValue fieldName="rapportage_nihil" fieldValue="false" fieldValueIsNull="false" fieldValueNatural="false"/> <FieldValue fiel...

How do I import XSD files into IntelliJ IDEA 9.0.1?

I am new to IntelliJ and to creating XSD files. In the "Create Project" wizard, there is no option to create an XML project. Do I create a Java project and then try to import the files? ...

How can I validate XML against an XSD with distinct imports and namespaces?

Hi there!! I am trying to validate a few XML files and I'm failing due to various issues with the XSD definition and the namespaces... This is public info, so no problem sharing data: the main XSD is at http://bioinformatics.ua.pt/euadr/euadr_types.xsd and it imports another XSD at the same location named common_types.xsd, I've validat...

Flex 4: Defining a XML data model in an Actionscript Class

I'm really having a hard time accessing a data model I've defined in an Actionscript class in my Flex app. The following is my AS Class (Model.as): package { import mx.rpc.http.HTTPService; public class Model { private static var _instance:Model; public static function getInstance():Model ...

putting multibinding on a single line in xaml

Is there a way to take this multibinding: <TextBox.IsEnabled> <MultiBinding Converter="{StaticResource LogicConverter}"> <Binding ElementName="prog0_used" Path="IsEnabled" /> <Binding ElementName="prog0_used" Path="IsChecked" /> </MultiBinding> </TextBox.IsEnabled> and put is all on one line, as in <TextBox IsE...

Parse text of element with empty element inside

I'm trying to convert an XHTML document that uses lots of tables into a semantic XML document in Python using xml.etree. However, I'm having some trouble converting this XHTML <TD> Textline1<BR/> Textline2<BR/> Textline3 </TD> into something like this <lines> <line>Textline1</line> <line>Textline2</line> <line>Textline3</...

XML/XSL nub: Is it possible to create a COMPOSITE XML/XSLT document?

I have just recently (like 2 days) started using XSLT documents with XML. I understand the basics and am able to generate a formatted document using an .XML document that references a separate .XSLT document. My question, as in the subject, is "Is it possible to create a SINGLE, composite document that contains both the XML data and XS...

consuming soap in python on appengine

i want to write an app (python) which reads the soap i get from the soap generating service on appengine. the services docs says: '...you will get the SOAP call with the XML packet...' i get this packet on an url i can set. how can i read this xml packet and parse the values i need? ...

XML problem in the basic menu example

Hi there, I am trying to create an app with some menus, an I am following the basic example available in the official android site: http://developer.android.com/guide/topics/ui/menus.html My problems appear when I define the menu in the XML. After creating the folder res/menu and creating the menu_option.xml file from eclipse.... The ...

Data format for content heavy iPhone app - Plist or XML?

Hello, I'm building an iPhone app that is essentially a book, it will be bundled with a lot of text-heavy content. I considered bundling the data as XML and load it when the application starts but the XML would contain a lot of nested structures and be a bit of a pain to parse. Would it be better to use a plist? I'm concerned about me...

Parsing NSXMLNode Attributes in Cocoa

Hello everyone, Given the following XML file: <?xml version="1.0" encoding="UTF-8"?> <application name="foo"> <movie name="tc" english="tce.swf" chinese="tcc.swf" a="1" b="10" c="20" /> <movie name="tl" english="tle.swf" chinese="tlc.swf" d="30" e="40" f="50" /> </application> How can I access the attributes ("english", "chines...

Error Creating RSS Feed XML file - Java

Hi, i am trying to create an RssFeed using java this is the class i use import com.rssFeed.domain.RSS; import com.rssFeed.domain.RSSItem; import java.io.FileOutputStream; import java.util.Iterator; import javax.xml.stream.XMLEventFactory; import javax.xml.stream.XMLEventWriter; import javax.xml.stream.XMLOutputFactory; import javax.xml...

How to determine if a RSS feed is XML or JSON?

Is there a way to tell if a feed is XML or JSON or both? thnx ...