xml

Warning: validation was turned on but an org.xml.sax.ErrorHandler...

Any idea why this error is happening and how to fix it? I'm getting this error when trying to parse/load a config file: Error Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is desired. Parser will use a default ErrorHandler to print the first 10 errors. Please call the 'setEr...

How to bind XmlDataProvider.Source to MVVM property

I've got a treeview bound to an XmlDataProvider following this example. The app I am working on is following the MVVM pattern and the Xml is from a file that the user will open. When I try to bind the Source property of the XmlDataProvider like so <XmlDataProvider Source="{Binding Path=XmlFilePath}"/> I get a "Binding can only be app...

xsd.exe creating invalid constraints in dataset from xsd file

I have a sequence with an allowed minimum length of zero in my xsd. When I try and load an xml file which doesn't have any elements of the sequence into the DataSet that xsd.exe created I get an exception indicating that my file violated one of the DataSet's constraints. The xml file validates against the schema so I know it's valid. ...

Problem getting XML properly formatted

Hi, I use classes (autogenerated from a schema) to generate xml documents. It has worked fine, until now, when I need to use inline HTML elements. I've tried several different methods, but as soon as I use the inline HTML, the "<" and ">" gets replaced with %lt; etc. Example: <meta> <name>test</name> <value>test <br />new row...

XSLT document() usage with WebKit browsers

I'm having an issue when attempting to include and access multiple XML documents in an XSL stylesheet. I'm assigning document nodes as variables and then attempting to access them in my xsl:template, similar to this: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:output method="xml" omit-xml-d...

MSXMLWriter60 doesn't output byteOrderMark for UTF-16 encoding

I'm using a variant on code seen in "How to make XMLDOMDocument include the XML Declaration?" (which can also be seen at MSDN. If I change the encoding to "UTF-16" one would think it would output as UTF-16... and it "does"... by looking at the output in a text editor; but checking it in a hex editor, the byte-order mark is missing (despi...

Can I use XMLReader to create objects representing elements in the document?

Hi, I have a very large XML file that I need to parse so I need to use XMLReader. This file contains a large number of second level elements that contain the information I'm interested in e.g.: <topLevelElement> <SecondLevelElement> <Information1>blah</Information1> <Information2>blah</Information2> <Information3>blah</In...

Validate XML Schema with xsd file in Cocoa?

I have some XML and an XML Schema in a local xsd file. The XML document does not contain any schema information. I want to validate the XML document against the xsd schema file in Cocoa (meaning I'd prefer something NS/CF/libxml based as opposed to an external library). I can across xmllint, which would probably work, but I was lookin...

Database design question, using multiple tables or XML

Imaging the following 3 relationships in a data model Entity > Path > Link Both relationships are 1 to many. So Entity has multiple paths and a path has multiple links. Should I do this as 3 tables with relationships between the tables Or create a table that stores that path information as XML. This table (lets call it Paths), will...

Python to generate output ready for Excel

I have a Python script gathering info from some remote network devices. The output can be maybe 20 to 1000 lines of text. This then goes into excel on my local PC for now. Now access to this Linux device is convoluted, a citrix session to a remote windows server then ssh to the Linux device half way around the world. There is no ftp, sc...

Are there any free Xml Diff/Merge tools available?

I have several config files in my .net applications which I would like to merge application settings elements etc. I was about to begin doing it manually as I usually do, however thought there must be an XML diff GUI tool available somewhere. The tool would be able to go to the element level to compare and display the differences etc....

Create XMLList containing multiple nodesets

Hi All, I have scoured the internet trying to find an answer to this...I must be asking the wrong question?! <a> <b> <c/> <c/> </b> <a> <b> <c/> </b> </a> </a> var x:XMLList = node.a | node.b.c; <-- compiler error var x:XMLList = node.a || node.b.c; <-- nothing and probably not correct syntax I want a | ...

Java: MalformedByteSequenceException (XML)

I'm trying to parse XML using this class. When I type out a simple file, it works fine. <testData> <text> odp </text> </testData> Here is my main public static void main(String[] args) { Xml train = new Xml(args[0], "trainingData"); Xml test = new Xml(args[1], "testData"); } However, when I use the file I got by cop...

LINQ to SQL equivalent for XML file persistence.

Microsoft has made saving objects very easy with their LINQ to SQL mapping. However, I would sometimes like something a little more lightweight, i.e. the ability to save objects to a file when an application closes, and read them back in again. XML seems like a natural data format rather than inventing a new data format. (Of course, on...

LINQ and XML...need help debugging this...

So my genius predecessor decided to include a 'xml_data' column in the database for an application. I now have to use some information stored in this xml for another application. I am doing a normal query to get the xml out of the db, and am trying to use LINQ to extract the data I need from the XML. Here is some example XML: <?xml v...

How to read xml respone using in oracle sql

How to read xml respone using in oracle sql(I have one node status. I want read the status node and insert into a table) plz help me regards ram ...

Flex: Displaying xml in advanced data grid

I have an external xml file and i want to display it in an advanced data grid....as in if i click the parent element the children have to be displayed in the corresponding columns...i'm trying it with my dataprovider but its not working. How do i do that?... ...

Extract resulted list data to a xml file in python

Hi, How can I extract my resulted list data to an xml file? My resulted list is given below: week=[{'item': Electrelane, 'weight': 140}, {'item': Kraftwerk, 'weight': 117},{'item': The Flaming Lips, 'weight': 113}] ...

Traversing XML Schemas Failed. (System.Xml.Schema and C# used)

Hello all, Good day. When i try to run the example from MSDN. But it failed at running time. Error Alert: An unhandled exception of type 'System.Xml.XmlException' occurred in System.Xml.dll Additional information: 'type' is an unexpected token. Expecting white space. Line 7, position 24. My Code http://msdn.microsoft.com/en-us/libr...

XML Schema reading/editing in vim?

Hi all, As XML Schemas can be tedious to read (yes, just want to read through the schema) in their normal form, I'm wondering if anyone knows of an existing plugin for vim which will display the schema in tree form, as several XML editors do? Selection of a node in this tree to navigate to the relevant section of the schema would be a g...