xml

Formatting XML returned from form POST

I have a regular HTML page with a form on it. The form POSTs to a remote server that returns its data in XML. I want to then transform this data into an easy-to-read format. How do I go about doing this? I am willing to try client-side or server-side solutions. We do our development work using Oracle Portal (yuck), and I am not enti...

Schema for Books, Magazines, other forms of media

I am going to be working on a project that will heavily involve indexing various forms of media including Books, Magazines, Web sites / pages, etc. What I am wondering is if there is a standard schema, xml, dtd, object model, database model, etc that anyone knows about and can point me to as a starting point or reference I greatly appr...

What is the easiest way to export a SQLServer 2000 database to XML?

I have an old SQL Server 2000 database that I want to get into XML so I can from there import parts of it into an SQLite database for a PHP website. I've accessed the SQL Server 2000 database via SQL Server Management Studio 2008 Express, I can open all the tables, view the data, etc. I was expecting to be able to e.g. right-click on "...

LinqToXml does not handle nillable elements as expected

According to W3C standards, if you have a nillable element with a nil value, you are supposed to format it like this: <myNillableElement xsi:nil="true" /> But if you use this LinqToXml statement... element.Add( new XElement(ns + "myNillableElement", null); ...the resulting XML is... <myNillableElement /> ...which is invalid....

respond_to 'include' Coming Up Empty Despite Data Existing

I've got a Rails app returning data via JSON and XML. In the controller, I've got something like this: respond_to do |format| format.xml { render :xml => @customers.to_xml(:include => [:invoices])) } end The Rails app returns the customers in a pretty XML doc but it always shows the 'invoices' array as empty (i.e. no data for the r...

Loading data from xml

Hi, In my program, there are two class, say, category and product, with each object of product hold a reference to the category it belongs to. When loading data from XML and store them in the database, a problem arise: If I create a category object and store it in the database first, there will be dirty data when creating product faile...

Parsing XML document with XPath, C#

Hi, So I'm trying to parse the following XML document with C#, using System.XML: <root xmlns:n="http://www.w3.org/TR/html4/"&gt; <n:node> <n:node> data </n:node> </n:node> <n:node> <n:node> data </n:node> </n:node> </root> Every treatise of XPath with namespaces tells me to do the following: XmlNamespaceManager mgr...

How to display XML in a HTML page as a collapsible and expandable tree using Javascript?

How to display a XML document in a HTML page as a collapsible and expandable tree? I'd like to display a XML document inside a HTML page as a nicely pretty printed tree structure. I'd like to be able to expand and collapse tree branches. For example Firefox browser does this when you load a plain XML file. Surely there is a some kind o...

How to append XML nodes using existing Nant or Nant Contrib tasks?

During a build process using Nant, how to update an xml file, for adding new nodes. I wish to do this by using existing Nant/NantContrib tasks ...

How do you display an XMPP (Jabber) vcard photo in Delphi?

How can I read a photo from an XMPP vcard (an avatar picture, which I think is in JPEG format) and display it in a Delphi TImage control? The XMPP server sends this XML: <presence id="e3T50-75" to="cvg@esx10-2022/spark" from="semra@esx10-2022" type="unavailable"> <x xmlns="vcard-temp:x:update"> <photo>897ce4538a4568f2e3c4838c69...

Issue with traversing through XML data - the VBScript way.

Sample XML: <cart subTotal="USD 3.50" > <item productSubTotal="3.50" > <pkProductItem>241</pkProductItem> <itemCode>23455-green-XL</itemCode> <itemName>my product ( green - XL-size )</itemName> <qty>1</qty> <itemUnitPrice>3.50</itemUnitPrice> <totalItemPrice>3.50</totalItemPrice> ...

how to access xml nodes in flex

A web service return to my flex3 client this custom exception: <SOAP-ENV:Fault xmlns:ro="urn:Gov2gLibrary" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:HNS="http://tempuri.org/" xmlns:SOAP-ENC="http://schemas.xmlsoap.or...

Why do we use hibernate annotation?

Why is it important? what are advantage according to XML mapping? Can you explan these? thank you. ...

How do I get libxml2's SAX2 interface to let me see &lt; et al?

I have some code using libxml2's SAX2 interface. I want to be able to see < type entities as entity references and not as characters but it appears that no matter what I do, libxml2 will turn &lt; into a < and then hand it to my characters callback instead of calling my reference callback. Any ideas as to how I can force libxml2 to cal...

Join xml files with XmlReader

I am joining 3 xml logfiles with LINQ to XML by id, but when my logfiles become too big, LINQ to XML doesn't work anymore, so i have to use XmlReader. But now I am asking myself how to do this? Should i loop through every document for each id, or is there a more simple elegant solution? Anybody? ...

Updating a Javascript Variable with AJAX

I am working on a project with FusionCharts that requires me to update a javascript variable with an AJAX request. The FusionChart populates itself with the xml within the 'chart1.setDataXML()' tag as seen below. <div id="barGraph"> Bar Graph </div> <script language="JavaScript"> var chart1= new FusionCharts("/charts/C...

innerText of XmlNode from a String

Is there anyway I can create nodes out of a string? I've searched the Web looking for something, but couldn't find anything that works! string _configFileName = @"d:\junk\config.xml"; XmlDocument xmldoc = new XmlDocument(); xmldoc.Load(_configFileName); string xmlTags = @"<queue name=queueName autoStart=true> <deleteFile>true</de...

Export Excel workbook with many worksheets to XML or CSV

Hi, I have a project to upload the data in many excel workbooks, each containing many worksheets that all have different columns. Fortunately all the workbooks are in the same format. Is there a programmatic way to loop through these worksheets to export it into one flat file in XML or CSV? I have experimented with ETL tools, but all o...

C# How to get a list of groups from each department in Active Directory

I've made a small application that reads out all the departments in our AD, and saves it as an xml file for each company that the departments belong to. But I also need to add all the groups that users in each department in each company is member of. Here is a snippet of one of the xml files that my code produces. I want to add the grou...

XML Parser for Ruby

Looking for something similar to xerces for parsing an xml file in ruby. I saw the native processor REXML and another called hpricot (though I can't find any documentation on hpricot, the links all appear to be dead). I'm looking for something that would parse an xml document via SAX2 in ruby. TIA. ...