xml

How to visualize an XML schema ?

I have made an XML Schema - all the code basically - and was wondering if there is a way that the code can generate something like this: http://www.novell.com/documentation/extend52/Docs/help/Director/books/PGImages/novell_portlet_xml_schema.gif If so how can I do it? ...

Replacing a Namespace with XSLT

Hi I want to work around a 'bug' in certain RSS-feeds, which use an incorrect namespace for the mediaRSS module. I tried to do it by manipulating the DOM programmatically, but using XSLT seems more flexible to me. Example: <media:thumbnail xmlns:media="http://search.yahoo.com/mrss" url="http://www.suedkurier.de/storage/pic/dpa/infoline...

What programming languages/platforms can read XML documents?

I'm working on a class assignment that involves reading an XML document and inserting the contents into a database. Language choice is wide open - so I figure, why not consider all my options! What languages are able and appropriate for the reading of XML? ...

UI Layout and Elements in XML

I want to use XML for UI layout and element definition. Want them to be rendered as HTML. Request to suggest a open source package for this. ...

Java+DOM: Registering and using modification listeners: tutorials?

Hello, everyone! Please point me to some tutorials or other explaining examples about how to register and use modification listeners with Java's DOM implementation. On the web I find only Javascript or Flex examples. My target is to get to know when a Node was modified. I tried out several approaches, nothing works. Could it be that ...

Parse Nested XML tags with the same name

Let's take a simple XML document: <x> <e> <e> <e>Whatever 1</e> </e> </e> <e> <e> <e>Whatever 2</e> </e> </e> <e> <e> <e>Whatever 3</e> </e> </e> </x> Using the standard org.w3c.dom, I can get the nodes in X by doing.. Nod...

searching XML documents using php

I am trying to make a search function using the combination of DOM, PHP and XML. I got something up and running but the problem is that my search function will only accept exact terms, on top of this am wondering if the method I picked the most efficient $searchTerm = "Lupe"; $doc = new DOMDocument(); foreach (file('musicInformation.xml...

XPATH - Select all child nodes with a specific attribute

Hi, what would be the xpath for the following: Find all child nodes with a specific attibute value but starting from a node with a specific attribute value. This is kind of related to a question I posted earlier about parsing and rdf xml file - I thought I had solved it but not quite yet. For example I am trying to parse and grab all ...

Good conventions for embedding schema of a flat file

We receive lots of data as flat files: delimitted or just fixed length records. It's sometimes hard to find out what the files actually contain. Are there any well established practices for embedding the schema of the file to the beginning or the end of a file to make the file self-explanatory? Just to get an idea, imagine something l...

What programming languages/platforms are suitable for writing to a database?

I'm working on a class assignment that involves reading an XML document and inserting the contents into a database. Language choice is wide open - so I figure, why not consider all my options! What languages are able and appropriate for working with databases? ...

Import Twitter XML into Visual Basic

Hello, I'm trying to import an XML that's provided by twitter into a readable format in Visual Basic. XML looks like: <?xml version="1.0" encoding="UTF-8" ?> - <statuses type="array"> - <status> <created_at>Mon Jan 18 20:41:19 +0000 2010</created_at> <id>111111111</id> <text>thattext</text> <source><a href="ht...

how to get mysql query result as xml?

I recall reading about XML support from MySql. Does anyone know how to get XML without writing code? My client-protocol expects XML and I have a data source that I can access from a web app (JSP using JDBC). ...

Linq-to-XML query to select specific sub-element based on additional criteria

My current LINQ query and example XML are below. What I'd like to do is select the primary email address from the email-addresses element into the User.Email property. The type element under the email-address element is set to primary when this is true. There may be more than one element under the email-addresses but only one will be...

ListView not importing data

Hello, I'm trying to import data into a listview and this is the code I'm using: Private Sub form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim doc As New XmlDocument doc.Load("http://user:[email protected]/1/statuses/mentions.xml") Dim nodes As XmlNodeList = doc.SelectNodes("St...

nokogiri xml unescape

hi, i'm just trying out nokogiri xml builder, but am having some problem tying to unescape the content. have been spending a bit of time googgling but so far can't find the answer. any help would be greatly appreciated. #build xml docoument builder = Nokogiri::XML::Builder.new do |xml| xml.root{ xml.node { xml.v...

Ruby on Rails, XML, AJAX, Perl Good Interview Questions

I am trying to devise a set of 15 to 25 questions to ask some of the people applying at our company. Can you guys throw in some good questions about Ruby, XML, Ajax, or Perl? This is for Junior position. I want just some easy questions, but at the same time they can be a little challenging. You know small answers, but requiring good k...

Create an XML file using Datasets Using info from XML Schema

Hello there, I have been thinking about the optimal way to create an XML file using data from a Dataset AND according to the rules of an XML schema. I've been searching around for a bit, and I failed to find a way in which I only take the data from the Dataset and put it inside a XML tags, with the tags being defined by an already-exist...

Appending nodes to XML files without first reading the file

Hi, If I want to store data about a certain resource in an XML file but for speed sake I don't want to first read the file and then re-write it, I want to append to existing file. But if it's a valid XML file than it has to have only a single root element, and if it's closed, than appending new node will be make XML file invalid. Any sug...

Can a single XML schema have multiple targetNameSpaces?

I have a complexType defined in targetNameSpace as say "http://xyz.example.com" and used in many places. Now i want to use it in my newly created XSDs with different namespace say "http://abc.example.com". Can i do this? Or do i have to use the same namespace? ...

How to Parse XML having multiple Default Namespace?

Here is my XML Response: <DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" <item id="1182" parentID="40" restricted="1"> <title>Hot Issue</title> </item> </DIDL-Lite> When I am trying to parse it using xELemnt and try assi...