xml

searching for a WSDL or updated xml with finance information

Hi i have to create a line chart with finance information like the one in this site http://finance.yahoo.com/ but i need information of all the countries is there a place where i can get this information updated as a web service or xml ? ...

XSLT character encoding problem

Hey guys, I'm using XSLT and having great success, just got a couple of problems. Warning: DOMDocument::loadXML() [domdocument.loadxml]: Entity 'Aring' not defined in Entity Basically for some non-standard characters I am getting the above type of error. I really want to fix this once and for all. I know about character mapping but I ...

In XSLT how do I increment a global variable from a different scope?

I am processing an XML file where I want to keep count of the number of nodes, so that I can use it as an ID as I write new nodes. At the moment I have a global variable called 'counter'. I am able to access it within a template, but I haven't found a way of manipulating it within a template. Here is a condensed version of my XSLT file...

Should I use the position of XML elements to detemine their order?

Say I've got a snippet of XML <Items> <SubItem Name="Banana"> <SubItem Name="Apple"> <Items> Is it valid to say that Banana comes before Apple? I know it does syntactically - but does it semantically. Or do I need to include some ordering attribute: <Items> <SubItem Name="Banana" Index="0"> <SubItem Name="Apple" Index="1"> <...

Is there a "Fast Infoset" XML compression library for Delphi?

I would like to support Fast Infoset in some enterprise applications to reduce network traffic for XML and SOAP exchanges. As documented on Wikipedia, there are Fast Infoset implementations for C# and Java. According to OSS Fast Infoset Tools, implementations are already available on several platforms including Microsoft .NET and .NET...

Bind Any XML document to WPF TreeView

I would like to bind any XML document to WPF TreeView using TypeConverter. My original solution was to use recursion, but when document is large UI is heavily tied up. Following link talks about TypeConverter but for particular node/element combination: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/edd843b7-b378-4c2d-926f-c0...

Using JAXB to unmarshall elements with varying/dynamic names

I'm parsing an XML document that has nodes like the following: <objects> <dog> <data1>...</data1> <data2>...</data2> <data3>...</data3> </dog> <cat> <data1>...</data1> <data2>...</data2> <data3>...</data3> </cat> </objects> The elements data1, data2, data3 are always consistent. Only the parent tag vari...

Flex: How to tell if XML is well formatted?

I have a function that loads in some XML that looks like this: private function onXMLLoad(e:Event):void { trace(e.target.data); hideLoading(); DataModel.instance.data = XML(e.target.data); updateSelections(); toggleExpand(); } If the XML data that is loading is not well formated for examp...

Showing HTML reports in CruiseControl dashboard

I have been looking into CruiseControl configuration recently (I'm a complete CC noob) and so far I understand that various XML reports generated by your build process (eg mbunit.xml, ncover.xml, fxcop.xml) can be shown in the dashboard by adding a reference to the xml to the following part of the ccnet.config: <publishers> <merge> <...

In WPF/Silverlight: Is it possible to bind a DataTable or an XML file to a ListView?

Is it possible in WPF to bind a data matrix (data table or an XML file) to a ListView? Given the following XML dataset: <data> <cols> <col name="FirstName" /> <col name="LastName" /> <col name="Age" /> </cols> <rows> <row> <col>Huey</col> <col>Freeman</col> <col>10</col> </row> <row> ...

Log to XML column using log4net

Is it possible to log to an XML column in SQL Server using the AdoNetAppender in log4net? I know that I can treat the column as a string and log that way through: <parameter> <parameterName value="@details" /> <dbType value="String" /> <size value="4000" /> <layout type="log4net.Layout.PatternLayout"> <conversionPa...

java.util.Date to XMLGregorianCalendar

Isn't there a convenient way of getting from a java.util.Date to a XMLGregorianCalendar? ...

How do you resolve a URN?

I have an XML schema file which references a urn based location. Is there some way to resolve this into a url, or some way to actually read the file it refers to. <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclGrp.xsd:1.1"/> ...

Adding objects to an NSMutableArray, order seems odd when parsing from an XML file

Hello: I am parsing an XML file for two elements: "title" and "noType". Once these are parsed, I am adding them to an object called aMaster, an instance of my own Master class that contains NSString variables. I am then adding these instances to an NSMutableArray on a singleton, in order to call them elsewhere in the program. The pro...

How could I find the string position (index) from an XPath statement?

This question is close, but it's looking for the ordinal position. I'm looking for the actual index position in a given source string. Better Explanation: I have the following string "<a> <b>zyx</b> <b>wvu</b> <b>tsr</b> <b>qpo</b> </a>" I'm loading that string into a .NET XmlDocument object. Carriage Returns and Lin...

How to serialize a generic JavaScript object to XML

Does one of the mainstream JavaScript libraries (YUI, jQuery, Dojo) provide a way to serialize a JavaScript object to XML (as text)? ...

XML Deserialization of a date with an empty value

I'm getting a xml file from one vendor that has some "empty" dates like this: <UpdatedOn/> <DeletedOn/> By doing a regular deserialization it fails with: Inner Exception: System.FormatException: String was not recognized as a valid DateTime. Any ideas how to deal with this ? My fields are already marked for a default DateTime: ...

Excel XML Line Feeds in Fields

I' trying to get the following string to output to a cell in Excel using the 2003 XML capabilities "Cheese\nBread" and at the moment it ignores the line break. If I create a file with the desired effect then I get the following output <Cell ss:StyleID="s62"><Data ss:Type="String">Cheese&#10;Monkey</Data></Cell> Okay, so I try doing.....

Generating Java Classes dynamically from an XML document

Consider this scenario: I've an XML file called person.xml with the following data in it. <person> <name>MrFoo</name> <age>28</age> </person> If I want to read this XML into a Java object, I would be creating a Java bean called PersonBean (with getters/setters for the attributes) as: class Person{ String name; int age...

Middle way between XSD all and XSD sequence

I'm defining a user element with XSD. For this example, a user has a name, email and one or more nationalities. I've tried: <xs:all> <xs:element name="name" blabla /> <xs:element name="email" blabla /> <xs:element name="nationality" minOccurs="1" maxOccurs="unbounded" /> </xs:all> However, that is illegal. Apparently elements in...