xml

What's the best way for an app on Windows to assocaite itself with a particular file type, such as .xml, .txt, etc., but share that association with other apps that support that extension?

If I create a new app, and associate with, say, the .xml file extension on a particular computer, when someone double clicks the .xml file, it will launch my app and pass the file as parameter. But Windows seems to know what other files have the ability to work with that file type. How is that set up? Also, when I save a Microsoft Wo...

How to avoid "The element 'x' in namespace 'x.xsd' has invalid child element 'Items' in namespace 'x.xsd'" ?

I have xml file whose structure is defined with following xsd: <?xml version="1.0" encoding="utf-8"?> <xs:schema targetNamespace="http://schemas.TEST.com/TEST/TEST.xsd" elementFormDefault="qualified" xmlns="http://schemas.TEST.com/TEST/TEST.xsd" xmlns:mstns="http://schemas.TEST.com/TEST/TEST.xsd" xmlns:xs="http://www.w3.org/2001/XMLSche...

LINQ to XML And Distinct Custom Class

I have a very interesting LINQ question. I have a document, that I am trying to filter results on, but to filter, I am matching on a REGEX result from one element of the XML. I have the following, working LINQ to XML to get the individual data that I'm looking for. Dim oDocument As XDocument oDocument = XDocument.Load("test.xml") Dim ...

(Flex 3) How do I get data from a xml file using HTTPservice and save the return data as an array?

Hi, I have an xml file (externally saved) that is similar to the following: [root]   [main]     [title]...[/title]     [content]...[/content]   [/main]   [main]     [title]...[/title]     [content]...[/content]   [/main] [/root] *All <> is replaced with []. What I like to do is to get what's in [title] tag using HTTPservice, import it...

Dynamically detect XML child

How to know if a XML list have a child? My code below is using hard code stating that I want to run the child of my XML. But I wouldn't want to write write every children() of it if I have a lot of child. private function dataLevel():void { for (var j:Number=0; j<xmlList.length(); j++) { createBranch(); for (var k:int = 0; k<xm...

Suitable XML Marshaller and Unmarshaller

Hi. We have an XML that needs to be converted to an object and vice versa. Something like Xstream does. Until now we were using Xstream to marshall and unmarshall the object/xml. However the problem is that an object that corresponds to XML in xstream, needs to have all the tags as attributes; else if XML contains any extra tags which ...

[Flex] Why does a starting + (plus sign) not show up in a combo box of data grid?

I use several controls with combo boxes and data grids, which I fill using a HTTPService which returns some XML. However in the XML there are some telephone numbers starting with a plus sign (ie. +123456). However in the combo boxes and the data grids the plus sign doesn't show (so it would display as 12345646). It doesn't matter if I u...

get XML assigned MC properties

I've created an amount of MC based on my XMLlist, and each assign with an attribute/ID stated in the XML. I'm now trying to trace back the parent of the assigned MC properties, how could I do that? The XML: <MEMBER NAME="Todd" ID="001"> <MEMBER NAME="Popia" ID="003"> </MEMBER> <MEMBER NAME="Popia2" ID="004"> <MEMBE...

Internet Explorer XML Ajax reply value iteration

Hi there, folks. I've already asked here a question about this issue. The thing is that I would really appreciate to get your help on this, as I can't seem to detect and solve the problem I'm having with an AJAX functionality on a site that I'm currently developing. I have a webform that makes an asynchronous call to a handler (.ashx) ...

XML file conversion issue

Hello everyone, I am using VSTS 2008 + C# + .Net 3.5 to conversion the below input XML file into destination format. There may be arbitrary number of Image elements. And the new Price information is provided in List. Any quick way to implement the conversion function? source format, <?xml version="1.0"?> <Metadata version="1"> <Own...

Spurious ^G (BELL) characters in JUnit log making CruiseControl barf

I have a CruiseControl build server running a large number of projects. On one of them I have recently noticed that only one of the two test suites are present in the build report (but failures in the other one still cause the build to fail). Further investigation showed that the XML output file of JUnit generated by ant's xmlformatter ...

c# xml element() select element where not defined

hi i have created the following xml <Fields xmlns="http://tempuri.org/XMLSchema1.xsd:Fields"&gt; <Field Name="ServiceProviderName"> <ID>0</ID> </Field> <Field Name="TransactionNumber"> <ID>1</ID> <Padding Length="8" PadChar="0"/> ...

XML Schema: "use='required'" with default value

In an XML Schema, is it possible to have an element which has use='required' and a default value (e.g. <xs:attribute name="Version" type="U8" use="required" default="02"/>)? ...

Java, xml, XSLT: Prevent DTD-Validation

I use the Java (6) XML-Api to apply a xslt transformation on a html-document from the web. This document is wellformed xhtml and so contains a valid DTD-Spec (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;). Now a problem occurs: Uppon transformation the XSLT-...

Correct Use of XML datatype in SQL Server?

I have an application that allows my users to make temporary changes to an ongoing booking. I have recenlty read about the new XML datatype in SQL server, and the corresponding SqlXml type. I am thinking of using the new type to store the previous values of the object so that I can later revert to them. Something like: Booking Table:...

flash load multiple xml files

I want to load 3 unique xml files, then parse them individually. Now if all 3 xml files been successfuly loaded & parsed. I want to go to frame 10 otherwise stop and displaymessage. xml.onLoad = function(success) { is for one xml if I have three or more XMLs how do I know when all of the has been successfuly read and processed, to n...

Generating Excel from C# - How to make diagonal borders?

I am using C# to generate an Excel spreadsheet and saving it in Excel 2003 XML format using this library. I need to make a cell that contains a big X. The sample sent by the client uses a left and right diagonal border to accomplish this. I've have been unable to find the correct code syntax to set a cell's style in this manner. How is ...

XML Parsing using JavaScript

Hey all, Here's an XML snippet: <appSettings> <add key="val1" value="val2"/> The XML document is loaded in memory, ready to be parsed. How would you get and write the value of "val2" to the web page? Thanks, rodchar Post Comments: I'm getting .selectSingleNode is not a function: <script type="text/javascript"> if (window.X...

Looping through XML with jQuery

I've got some basic code that can loop through some XML that's generated from Adobe RoboHelp (for our help documentation). This works fine, but since a topic could be nested as many time as the writer wants, i need a better way to loop through this XML rather than just nesting .each() loops. Here's what the XML looks like <?xml version...

Adding new optional node on XML

Hello, I currently have this XML schema : <PSC5> <POI_ORI> <CIT>LIM</CIT> </POI_ORI> </PSC5> if user want to add a new option, the final schema will be : <PSC5> <OPT>132<OPT> <POI_ORI> <CIT>LIM</CIT> </POI_ORI> </PSC5> if not just keep like : <PSC5> <POI_ORI> <CIT>string</CIT> </POI_ORI> </PSC5> Im ...