xml

"Schema has to begin with a <schema> element in namespace 'http://www.w3.org/2001/XMLSchema'" Error?

When attempting to display the XML Schema in XML spy I get the following error. "Schema has to begin with a element in namespace 'http://www.w3.org/2001/XMLSchema'" I tried it with a simple sample xml and get the same error <?xml version="1.0"?> <Book xmlns:lib="http://www.library.com"&gt; <lib:Title>Sherlock Holmes</lib:Title> <l...

Using an XML file as my Winforms .NET 2.0 datasource

Is it possible to point to an xml file as a datasource in the same way you would with an .mdf file? Please let me know if I can clarify this question. For example, let's say I have a datagrid and I want to connect a datasource to it and I want that datasource to be based on a local filesystem xml file. ...

XML Visualization tool?

What is good XML visualization tool? I am looking for tools to help provide good xml visualization. XML spy didnt do a good job at it ...

xsl format date (substring + concatenate ?)

I have the input <Date value="20091223"/> and I want the output to be <Date>23122009</Date> I was trying to use substring function to reformat the date <xsl:value-of select="substring($Date,1,4)"/> But how to concatenate the extracted year and months and day together. ...

Optimizing XML response of web service

In performance tests of our web service we found out that the traffic generated by the response exceeded our expectations a lot. We are querying the database and loading lists consisting of rows and columns. The type of the column is AnyType so the in the response there needs to be a type information. Therefor the web service engine (A...

DotNetNuke + XPath = Custom navigation menu

I'm developing a skin for DotNetNuke 5 using the DNN Done Right menu component which uses an custom XSL-T to convert the XML sitemap into an HTML navigation. Using XSL-T is a life saver in comparison to the other ways of building a navigation menu. However I've run into problems doing something a little more complex, as I'm a newcomer t...

JOOMLA + XML Parsing Error at 1:1496. Error 4: not well-formed (invalid token)

I am receiving the error: "XML Parsing Error at 1:1496. Error 4: not well-formed (invalid token)" on all pages of a Joomla install. Not sure exactly when the error started but it was working before. I have recently installed SOBI2 and 4RSS components, however when I disable or uninstall them the error still shows up. Joomla Version 1.5....

Can I use PHP to grab external XML file for use by JQuery?

I am trying to load Google custom XML search results into a PHP page and then manipulate the XML using JQuery. I understand that I can't use javascript to grab the XML file as it's on an external domain but can I use PHP to grab the XML from the server and then make it available to JQuery as an XML file, or other DOM structure, so I ca...

Edit XML with Eclipse productively

I find XML editor of Eclipse is very unproductive (new child or attribute must be inserted by context menu), and the text editor for XML is lack of hints. Are there any plugins or tricks that can make XML editing in Eclipse productively? ...

problem validating XML against DTD in C#

This has been bugging me for a couple days. I'm trying to load a XML from an uploaded file to into an XmlDocument object and get the following yellow-screen-of-death: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings int...

Xml help in my class ?

Xml help using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Xml; namespace xmlBase { public class xmlBase { public string XmlFileName { set; get; } ...

How to: Excel Ribbon with multiple Workbook-level ribbon items with dynamic attributes?

I am trying to work out a solution to share most of my VBA codebase across workbooks. This involves creating a .xlam file that would contain the shared modules & classes (+ their respective factories). I'm willing to use Office 2007's wonderful RibbonUI, and have that .xlam file declare a custom tab (Let us call it MyTab for the sake of...

XQuery performance in SQL Server

Why does this quite simple xquery takes 10min to execute in sql server (the 2mb xml document stored in one column) compared to 14 seconds when using oxygen/file based querying? SELECT model.query('declare default element namespace "http://www.sbml.org/sbml/level2"; for $all_species in //species, $all_reactions in //reaction where data(...

Convert XML document from Latin1 to UTF8 using Java

I am trying to create an XML document (rss feed) and have worked out all the kinks in it except for one character encoding issue. The problem is that I am using a UTF-8 encoding like so <?xml version="1.0" encoding="UTF-8"?> except the document itself is not encoded to UTF-8. I am using the org.apache.ecs.xml package to create all the ...

Is there a python hamcrest matcher library for performing XML document matching?

I'm interested in both xpath matching and full document comparisons: assert_that(mydoc, hasTextAtXPath('/foo/bar', 'text')) assert_that(mydoc, matchesStructurally('<some_xml/>')) Does any matcher library exist for this? If not, what is the best place to start with for this type of comparison, so that I can write one of my own? ...

How sort xml by distinct data using classic asp?

hi this is my xml <XMLResponse> <Product> <Items> <ID>AA</ID> </Items> <Items> <ID>BB</ID> </Items> <Items> <ID>CC</ID> </Items> <Items> <ID>AA</ID> </Items> <Items> <ID>AA</ID> </Items> <Items> <ID>BB</ID> </Items> </Product> </XMLResponse> this is the code i using in my classic asp <% Response.ContentType = "text/plain; charset=UT...

Flash CS4 Scroll Dynamic Text Horizontally

Hey everyone, I know next to nothing about Flash, so hope this doesn't make anyone mad...This seems like it should be really simple...I basically need a scrolling "ticker" for small amounts of formatted text and a little more information, which will stop scrolling on mouse over, be continuous (i.e. never have gaps, have first item appen...

What is a good XML visualization tool?

What is a good XML visualization tool? In a more document friendly way. XML spy had a grid view but that wasn't decent enough to paste in a design document ...

Best way to store data locally in .NET (C#)

I'm writing an application that takes user data and stores it locally for use later. The application will be started and stopped fairly often, and I'd like to make it save/load the data on application start/end. It'd be fairly straightforward if I used flat files, as the data doesn't really need to be secured (it'll only be stored on th...

XML Serialization in C# without XML attribute nodes

Hello, I have an XML document format from a legacy system that I have to support in a future application. I want to be able to both serialize and deserialize the XML between XML and C# objects, however, using the objects generated by xsd.exe, the C# serialization includes the xmlns:xsi..., xsi:... etc XML attributes on the root element...